diff options
author | Daniel Jacobowitz <dan@debian.org> | 2002-05-11 23:48:23 +0000 |
---|---|---|
committer | Daniel Jacobowitz <dan@debian.org> | 2002-05-11 23:48:23 +0000 |
commit | 15c2337e0b837cb598902b6a4ae234df971c6e5c (patch) | |
tree | 53e4911f36f222d38e1c118a9fea357c15d6b647 /gdb/printcmd.c | |
parent | a118e0e05bdb36bfd83cabec9143c1b4e5d07f27 (diff) | |
download | gdb-15c2337e0b837cb598902b6a4ae234df971c6e5c.tar.gz |
2002-05-11 Daniel Jacobowitz <drow@mvista.com>
* TODO: Remove value_headof/value_from_vtable_info comment.
* printcmd.c (print_command_1): Don't call value_from_vtable_info.
* values.c (value_headof, value_from_vtable_info): Delete.
* value.h (value_from_vtable_info): Delete prototype.
Diffstat (limited to 'gdb/printcmd.c')
-rw-r--r-- | gdb/printcmd.c | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/gdb/printcmd.c b/gdb/printcmd.c index b74f5587944..de306f0b98f 100644 --- a/gdb/printcmd.c +++ b/gdb/printcmd.c @@ -923,25 +923,6 @@ print_command_1 (char *exp, int inspect, int voidprint) old_chain = make_cleanup (free_current_contents, &expr); cleanup = 1; val = evaluate_expression (expr); - - /* C++: figure out what type we actually want to print it as. */ - type = VALUE_TYPE (val); - - 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)) - { - struct value *v; - - v = value_from_vtable_info (val, TYPE_TARGET_TYPE (type)); - if (v != 0) - { - val = v; - type = VALUE_TYPE (val); - } - } } else val = access_value_history (0); |