diff options
author | Daniel Jacobowitz <drow@false.org> | 2002-05-11 23:48:23 +0000 |
---|---|---|
committer | Daniel Jacobowitz <drow@false.org> | 2002-05-11 23:48:23 +0000 |
commit | 6d2f5ceaae21cdff53454ab032848b589abd60f7 (patch) | |
tree | 741429a72ece3b89d6aee0a1adb811a52fb05ecf /gdb/printcmd.c | |
parent | d2324da42d2daeecf1d7111a9b77e571f94f093d (diff) | |
download | gdb-6d2f5ceaae21cdff53454ab032848b589abd60f7.zip gdb-6d2f5ceaae21cdff53454ab032848b589abd60f7.tar.gz gdb-6d2f5ceaae21cdff53454ab032848b589abd60f7.tar.bz2 |
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 b74f558..de306f0 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); |