aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.opt/inline-locals.exp
diff options
context:
space:
mode:
authorPedro Alves <palves@redhat.com>2011-01-25 16:26:23 +0000
committerPedro Alves <palves@redhat.com>2011-01-25 16:26:23 +0000
commit585fdaa10662a5a89a0de0dcfa076378df05a67b (patch)
tree9527f0722e3b519054e04e2dd0bff027bef6a99b /gdb/testsuite/gdb.opt/inline-locals.exp
parentd468832aa56d114691596968939b3026cf0519b5 (diff)
downloadgdb-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/testsuite/gdb.opt/inline-locals.exp')
-rw-r--r--gdb/testsuite/gdb.opt/inline-locals.exp4
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/testsuite/gdb.opt/inline-locals.exp b/gdb/testsuite/gdb.opt/inline-locals.exp
index 5c5cf31..f758f33 100644
--- a/gdb/testsuite/gdb.opt/inline-locals.exp
+++ b/gdb/testsuite/gdb.opt/inline-locals.exp
@@ -62,7 +62,7 @@ if { ! $no_frames } {
-re "arg1 = $decimal\r\n$gdb_prompt $" {
pass $msg
}
- -re "arg1 = <value optimized out>\r\n$gdb_prompt $" {
+ -re "arg1 = <optimized out>\r\n$gdb_prompt $" {
# GCC 4.3 and later lose location information for arg1. GCC 4.2 is OK.
if { [test_compiler_info "gcc-4-3-*"] || [test_compiler_info "gcc-4-4-*"]} {
setup_xfail *-*-*
@@ -101,7 +101,7 @@ if { ! $no_frames } {
-re "arg1 = $decimal\r\n$gdb_prompt $" {
pass $msg
}
- -re "arg1 = <value optimized out>\r\n$gdb_prompt $" {
+ -re "arg1 = <optimized out>\r\n$gdb_prompt $" {
# GCC 4.3 and later lose location information for arg1. GCC 4.2 is OK.
if { [test_compiler_info "gcc-4-3-*"] || [test_compiler_info "gcc-4-4-*"]} {
setup_xfail *-*-*