summaryrefslogtreecommitdiff
path: root/gdb/printcmd.c
diff options
context:
space:
mode:
authorDaniel Berlin <dberlin@dberlin.org>2001-07-06 19:17:05 +0000
committerDaniel Berlin <dberlin@dberlin.org>2001-07-06 19:17:05 +0000
commitefae50153d4577bd05fc34b76c47bdca79982233 (patch)
treeebfdde719009a58b2f719cb06926eb6aab787aba /gdb/printcmd.c
parentd30f071864b3938dd9d197547c65b33980a243f8 (diff)
downloadgdb-efae50153d4577bd05fc34b76c47bdca79982233.tar.gz
Note that this currently isn't building, i'm in the middle of converting make_function_type/lookup_function_type
Diffstat (limited to 'gdb/printcmd.c')
-rw-r--r--gdb/printcmd.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/gdb/printcmd.c b/gdb/printcmd.c
index 746a0646cc0..57d649dfc27 100644
--- a/gdb/printcmd.c
+++ b/gdb/printcmd.c
@@ -923,9 +923,10 @@ print_command_1 (char *exp, int inspect, int voidprint)
if (objectprint
&& (TYPE_CODE (type) == TYPE_CODE_PTR
|| TYPE_CODE (type) == TYPE_CODE_REF)
- && (TYPE_CODE (TYPE_TARGET_TYPE (type)) == TYPE_CODE_STRUCT
- || TYPE_CODE (TYPE_TARGET_TYPE (type)) == TYPE_CODE_UNION))
+ && (TYPE_CODE (POINTER_TARGET_TYPE (type)) == TYPE_CODE_STRUCT
+ || TYPE_CODE (POINTER_TARGET_TYPE (type)) == TYPE_CODE_UNION))
{
+#if 0
value_ptr v;
v = value_from_vtable_info (val, TYPE_TARGET_TYPE (type));
@@ -934,6 +935,7 @@ print_command_1 (char *exp, int inspect, int voidprint)
val = v;
type = VALUE_TYPE (val);
}
+#endif
}
}
else