diff options
author | Pedro Alves <palves@redhat.com> | 2011-01-25 16:26:23 +0000 |
---|---|---|
committer | Pedro Alves <palves@redhat.com> | 2011-01-25 16:26:23 +0000 |
commit | 585fdaa10662a5a89a0de0dcfa076378df05a67b (patch) | |
tree | 9527f0722e3b519054e04e2dd0bff027bef6a99b /gdb/p-valprint.c | |
parent | d468832aa56d114691596968939b3026cf0519b5 (diff) | |
download | gdb-585fdaa10662a5a89a0de0dcfa076378df05a67b.zip gdb-585fdaa10662a5a89a0de0dcfa076378df05a67b.tar.gz gdb-585fdaa10662a5a89a0de0dcfa076378df05a67b.tar.bz2 |
Centralize printing "<optimized out>".
gdb/
* valprint.h (val_print_optimized_out): Declare.
* cp-valprint.c (cp_print_value_fields): Use
val_print_optimized_out.
* jv-valprint.c (java_print_value_fields): Ditto.
* p-valprint.c (pascal_object_print_value_fields): Ditto.
* printcmd.c (print_formatted): Ditto.
* valprint.c (valprint_check_validity): Ditto.
(value_check_printable): Ditto.
(val_print_optimized_out): New.
gdb/doc/
* gdb.texinfo: s/value optimized out/optimized out/g
gdb/testsuite/
* gdb.base/frame-args.exp: Adjust.
* gdb.dwarf2/dw2-noloc.exp: Adjust.
* gdb.dwarf2/dw2-inline-param.exp: Adjust.
* gdb.dwarf2/pieces.exp: Adjust.
* gdb.opt/clobbered-registers-O2.exp: Adjust.
* gdb.opt/inline-locals.exp: Adjust.
* gdb.threads/fork-child-threads.exp: Adjust.
Diffstat (limited to 'gdb/p-valprint.c')
-rw-r--r-- | gdb/p-valprint.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/p-valprint.c b/gdb/p-valprint.c index 34decb9..f803ddc 100644 --- a/gdb/p-valprint.c +++ b/gdb/p-valprint.c @@ -810,7 +810,7 @@ pascal_object_print_value_fields (struct type *type, const gdb_byte *valaddr, else if (!value_bits_valid (val, TYPE_FIELD_BITPOS (type, i), TYPE_FIELD_BITSIZE (type, i))) { - fputs_filtered (_("<value optimized out>"), stream); + val_print_optimized_out (stream); } else { @@ -842,7 +842,7 @@ pascal_object_print_value_fields (struct type *type, const gdb_byte *valaddr, unpack_field_as_long (type, valaddr + offset, i)); if (v == NULL) - fputs_filtered ("<optimized out>", stream); + val_print_optimized_out (stream); else pascal_object_print_static_field (v, stream, recurse + 1, options); |