diff options
author | Tom Tromey <tromey@redhat.com> | 2012-05-18 15:27:25 +0000 |
---|---|---|
committer | Tom Tromey <tromey@redhat.com> | 2012-05-18 15:27:25 +0000 |
commit | edf0c1b7caed4e2bfb9a84fd9c226c6720da1d97 (patch) | |
tree | b84ed8fdcc35ce9e0f882e99673ad10e625b2302 /gdb/gnu-v3-abi.c | |
parent | 2a0bfc8d1692df9d38f2932dc8a32f4bfea6cfb0 (diff) | |
download | gdb-edf0c1b7caed4e2bfb9a84fd9c226c6720da1d97.zip gdb-edf0c1b7caed4e2bfb9a84fd9c226c6720da1d97.tar.gz gdb-edf0c1b7caed4e2bfb9a84fd9c226c6720da1d97.tar.bz2 |
* printcmd.c (print_address_demangle): Add 'opts' argument.
* p-valprint.c (pascal_val_print): Update.
* jv-valprint.c (java_val_print): Update.
* value.h: Update.
* valprint.c (generic_val_print): Update.
(print_function_pointer_address): Add 'options' argument. Remove
'addressprint' argument. Update.
* m2-valprint.c (print_unpacked_pointer): Update.
* gnu-v3-abi.c (print_one_vtable): Update.
(gnuv3_print_method_ptr): Update.
* f-valprint.c (f_val_print): Update.
* cp-valprint.c (cp_print_value_fields): Update.
* valprint.h (print_function_pointer_address): Update.
* c-valprint.c (c_val_print): Update.
Diffstat (limited to 'gdb/gnu-v3-abi.c')
-rw-r--r-- | gdb/gnu-v3-abi.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/gdb/gnu-v3-abi.c b/gdb/gnu-v3-abi.c index ed94b84..42b939d 100644 --- a/gdb/gnu-v3-abi.c +++ b/gdb/gnu-v3-abi.c @@ -620,7 +620,12 @@ gnuv3_print_method_ptr (const gdb_byte *contents, print_longest (stream, 'd', 1, ptr_value); } else - print_address_demangle (gdbarch, ptr_value, stream, demangle); + { + struct value_print_options opts; + + get_user_print_options (&opts); + print_address_demangle (&opts, gdbarch, ptr_value, stream, demangle); + } if (adjustment) { @@ -890,8 +895,7 @@ print_one_vtable (struct gdbarch *gdbarch, struct value *value, if (ex.reason < 0) printf_filtered (_("<error: %s>"), ex.message); else - print_function_pointer_address (gdbarch, addr, gdb_stdout, - opts->addressprint); + print_function_pointer_address (opts, gdbarch, addr, gdb_stdout); printf_filtered ("\n"); } } |