diff options
author | Daniel Jacobowitz <drow@false.org> | 2003-06-21 23:27:53 +0000 |
---|---|---|
committer | Daniel Jacobowitz <drow@false.org> | 2003-06-21 23:27:53 +0000 |
commit | 9e14d72114b8e40e25ac0f99fc9a5e490eba70a8 (patch) | |
tree | 2a345e915dcc884188439dfec10b4dcbd7350d1f /gdb/c-valprint.c | |
parent | a4b8ebc89d2cbe6be8b4fe808e0d4c9ac2556a51 (diff) | |
download | gdb-9e14d72114b8e40e25ac0f99fc9a5e490eba70a8.zip gdb-9e14d72114b8e40e25ac0f99fc9a5e490eba70a8.tar.gz gdb-9e14d72114b8e40e25ac0f99fc9a5e490eba70a8.tar.bz2 |
* c-valprint.c (c_value_print): Add VALUE_OFFSET to the address
argument of val_print.
* cp-valprint.c (cp_print_value): Don't add the offset parameter
to the address argument of baseclass_offset or target_read_memory.
Do add it to the argument of cp_print_value_fields.
Diffstat (limited to 'gdb/c-valprint.c')
-rw-r--r-- | gdb/c-valprint.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/gdb/c-valprint.c b/gdb/c-valprint.c index 419b247..4ca48a6 100644 --- a/gdb/c-valprint.c +++ b/gdb/c-valprint.c @@ -592,7 +592,8 @@ c_value_print (struct value *val, struct ui_file *stream, int format, /* Otherwise, we end up at the return outside this "if" */ } - return val_print (type, VALUE_CONTENTS_ALL (val), VALUE_EMBEDDED_OFFSET (val), - VALUE_ADDRESS (val), + return val_print (type, VALUE_CONTENTS_ALL (val), + VALUE_EMBEDDED_OFFSET (val), + VALUE_ADDRESS (val) + VALUE_OFFSET (val), stream, format, 1, 0, pretty); } |