Make "set debug frame 1" output print <not saved> instead of <optimized out>.
authorPedro Alves <palves@redhat.com>
Wed, 27 Nov 2013 17:49:59 +0000 (17:49 +0000)
committerPedro Alves <palves@redhat.com>
Wed, 27 Nov 2013 17:49:59 +0000 (17:49 +0000)
commit6bd273ae450b2ba626b0f7dbda10947e69578e1d
treea169529449c0bf2950b66b9bc89f088448d84ddf
parentf6c01fc5156fde67bd62b1d66dee769dd88bf51e
Make "set debug frame 1" output print <not saved> instead of <optimized out>.

"set debug frame 1" is printing "<optimized out>" for not saved
registers.  That's because the unwinders are returning optimized out
not_lval values instead of optimized out lval_register values.  "<not
saved>" is how val_print_optimized_out prints lval_register values.

  ...
  - { frame_unwind_register_value (frame=0,regnum=7(rsp),...) -> <optimized out> }
  + { frame_unwind_register_value (frame=0,regnum=7(rsp),...) -> <not saved> }
  ...

Tested on x86_64 Fedora 17.

2013-11-27  Pedro Alves  <palves@redhat.com>

* frame-unwind.c (frame_unwind_got_optimized): Return
an lval_register value instead of a not_lval value.
gdb/ChangeLog
gdb/frame-unwind.c