diff options
author | Yao Qi <yao.qi@linaro.org> | 2016-11-11 08:38:31 +0000 |
---|---|---|
committer | Yao Qi <yao.qi@linaro.org> | 2016-11-11 08:38:31 +0000 |
commit | 668e167446b2777869f413841ec05aed59473d9f (patch) | |
tree | cbccde5d014f42cfa1f393b6134f6c268cf1c0fa /gdb/valprint.c | |
parent | 65408fa680538f997cdd4b6fb9d74f043a060801 (diff) | |
download | fsf-binutils-gdb-668e167446b2777869f413841ec05aed59473d9f.zip fsf-binutils-gdb-668e167446b2777869f413841ec05aed59473d9f.tar.gz fsf-binutils-gdb-668e167446b2777869f413841ec05aed59473d9f.tar.bz2 |
Remove apply_val_pretty_printer parameter valaddr
This patch removes the parameter valaddr of
extension_language_ops::apply_val_pretty_printer and remove const from
"struct value *val". valaddr can be got in each extension language's
implementation of apply_val_pretty_printer.
gdb:
2016-11-11 Yao Qi <yao.qi@linaro.org>
* cp-valprint.c (cp_print_value): Remove local base_valaddr.
* extension-priv.h (struct extension_language_ops)
<apply_val_pretty_printer>: Remove the second parameter.
Remove const from "struct value *". Callers updated.
* extension.c (apply_ext_lang_val_pretty_printer): Update
comments. Remove parameter valaddr. Remove const from
"struct value *".
* extension.h (apply_ext_lang_val_pretty_printer): Update
declaration.
* guile/guile-internal.h (gdbscm_apply_val_pretty_printer):
Update declaration.
* guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer):
Remove parameter valaddr. Remove const from "struct value *".
* python/py-prettyprint.c (gdbpy_apply_val_pretty_printer):
Likewise.
* python/python-internal.h (gdbpy_apply_val_pretty_printer):
Update declaration.
Diffstat (limited to 'gdb/valprint.c')
-rw-r--r-- | gdb/valprint.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/gdb/valprint.c b/gdb/valprint.c index b18ece3..c0cdb34 100644 --- a/gdb/valprint.c +++ b/gdb/valprint.c @@ -1098,9 +1098,7 @@ val_print (struct type *type, LONGEST embedded_offset, if (!options->raw) { - const gdb_byte *valaddr = value_contents_for_printing (val); - - ret = apply_ext_lang_val_pretty_printer (type, valaddr, embedded_offset, + ret = apply_ext_lang_val_pretty_printer (type, embedded_offset, address, stream, recurse, val, options, language); if (ret) @@ -1223,7 +1221,6 @@ value_print (struct value *val, struct ui_file *stream, { int r = apply_ext_lang_val_pretty_printer (value_type (val), - value_contents_for_printing (val), value_embedded_offset (val), value_address (val), stream, 0, |