Centralize printing "<optimized out>".
authorPedro Alves <palves@redhat.com>
Tue, 25 Jan 2011 16:26:23 +0000 (16:26 +0000)
committerPedro Alves <palves@redhat.com>
Tue, 25 Jan 2011 16:26:23 +0000 (16:26 +0000)
commit585fdaa10662a5a89a0de0dcfa076378df05a67b
tree9527f0722e3b519054e04e2dd0bff027bef6a99b
parentd468832aa56d114691596968939b3026cf0519b5
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.
16 files changed:
gdb/ChangeLog
gdb/cp-valprint.c
gdb/doc/ChangeLog
gdb/doc/gdb.texinfo
gdb/jv-valprint.c
gdb/p-valprint.c
gdb/testsuite/ChangeLog
gdb/testsuite/gdb.base/frame-args.exp
gdb/testsuite/gdb.dwarf2/dw2-inline-param.exp
gdb/testsuite/gdb.dwarf2/dw2-noloc.exp
gdb/testsuite/gdb.dwarf2/pieces.exp
gdb/testsuite/gdb.opt/clobbered-registers-O2.exp
gdb/testsuite/gdb.opt/inline-locals.exp
gdb/testsuite/gdb.threads/fork-child-threads.exp
gdb/valprint.c
gdb/valprint.h