From 585fdaa10662a5a89a0de0dcfa076378df05a67b Mon Sep 17 00:00:00 2001 From: Pedro Alves Date: Tue, 25 Jan 2011 16:26:23 +0000 Subject: Centralize printing "". 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. --- gdb/doc/ChangeLog | 4 ++++ gdb/doc/gdb.texinfo | 8 ++++---- 2 files changed, 8 insertions(+), 4 deletions(-) (limited to 'gdb/doc') diff --git a/gdb/doc/ChangeLog b/gdb/doc/ChangeLog index f926ebc7b6b..95c58f4230e 100644 --- a/gdb/doc/ChangeLog +++ b/gdb/doc/ChangeLog @@ -1,3 +1,7 @@ +2011-01-25 Pedro Alves + + * gdb.texinfo: s/value optimized out/optimized out/g + 2011-01-21 Joel Brobecker * gdb.texinfo (Other Misc Settings): Rework part of the diff --git a/gdb/doc/gdb.texinfo b/gdb/doc/gdb.texinfo index cc2391bfc72..5dc0af0befc 100644 --- a/gdb/doc/gdb.texinfo +++ b/gdb/doc/gdb.texinfo @@ -5951,7 +5951,7 @@ only if it is a scalar (integer, pointer, enumeration, etc). See command @kbd{set print frame-arguments} in @ref{Print Settings} for more details on how to configure the way function parameter values are printed. -@cindex value optimized out, in backtrace +@cindex optimized out, in backtrace @cindex function call arguments, optimized out If your program was compiled with optimizations, some compilers will optimize away arguments passed to functions if those arguments are @@ -5965,8 +5965,8 @@ such a backtrace might look like: @group #0 m4_traceon (obs=0x24eb0, argc=1, argv=0x2b8c8) at builtin.c:993 -#1 0x6e38 in expand_macro (sym=) at macro.c:242 -#2 0x6840 in expand_token (obs=0x0, t=, td=0xf7fffb08) +#1 0x6e38 in expand_macro (sym=) at macro.c:242 +#2 0x6840 in expand_token (obs=0x0, t=, td=0xf7fffb08) at macro.c:71 (More stack frames follow...) @end group @@ -5974,7 +5974,7 @@ such a backtrace might look like: @noindent The values of arguments that were not saved in their stack frames are -shown as @samp{}. +shown as @samp{}. If you need to display the values of such optimized-out arguments, either deduce that from other variables whose values depend on the one -- cgit v1.2.1