aboutsummaryrefslogtreecommitdiff
path: root/gdb/value.c
diff options
context:
space:
mode:
authorAndrew Burgess <aburgess@broadcom.com>2013-11-27 17:49:59 +0000
committerPedro Alves <palves@redhat.com>2013-11-27 17:49:59 +0000
commitf6c01fc5156fde67bd62b1d66dee769dd88bf51e (patch)
tree33ba2a3dfbcc2ee6f4796d9de1591b59ee59f0d6 /gdb/value.c
parentb35d44f1af711925bfa4344ef00470fee67122f1 (diff)
downloadgdb-f6c01fc5156fde67bd62b1d66dee769dd88bf51e.zip
gdb-f6c01fc5156fde67bd62b1d66dee769dd88bf51e.tar.gz
gdb-f6c01fc5156fde67bd62b1d66dee769dd88bf51e.tar.bz2
Make "set debug frame 1" use the standard print routine for optimized out values.
... - { frame_unwind_register_value (frame=0,regnum=7(rsp),...) -> optimized out } + { frame_unwind_register_value (frame=0,regnum=7(rsp),...) -> <optimized out> } ... Tested on x86_64 Fedora 17. 2013-11-27 Andrew Burgess <aburgess@broadcom.com> * frame.c: Include "valprint.h". (frame_unwind_register_value): Use value_optimized_out. * value.c (value_fetch_lazy): Likewise.
Diffstat (limited to 'gdb/value.c')
-rw-r--r--gdb/value.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/gdb/value.c b/gdb/value.c
index 8052f52..a64e7e1 100644
--- a/gdb/value.c
+++ b/gdb/value.c
@@ -3572,7 +3572,10 @@ value_fetch_lazy (struct value *val)
fprintf_unfiltered (gdb_stdlog, "->");
if (value_optimized_out (new_val))
- fprintf_unfiltered (gdb_stdlog, " optimized out");
+ {
+ fprintf_unfiltered (gdb_stdlog, " ");
+ val_print_optimized_out (new_val, gdb_stdlog);
+ }
else
{
int i;