This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[COMMITTED PATCH 0/2] "set debug frame 1" and not saved registers (was: Re: [PATCH 08/12] Replace some value_optimized_out with value_entirely_available)
- From: Pedro Alves <palves at redhat dot com>
- To: gdb-patches at sourceware dot org
- Date: Wed, 27 Nov 2013 17:52:38 +0000
- Subject: [COMMITTED PATCH 0/2] "set debug frame 1" and not saved registers (was: Re: [PATCH 08/12] Replace some value_optimized_out with value_entirely_available)
- Authentication-results: sourceware.org; auth=none
- References: <5208D50F dot 8020109 at broadcom dot com>
On 08/12/2013 01:29 PM, Andrew Burgess wrote:
> @@ -1035,8 +1036,11 @@ frame_unwind_register_value (struct frame_info
> *frame, int regnum)
> if (frame_debug)
> {
> fprintf_unfiltered (gdb_stdlog, "->");
> - if (value_optimized_out (value))
> - fprintf_unfiltered (gdb_stdlog, " optimized out");
> + if (!value_entirely_available (value))
> + {
> + fprintf_unfiltered (gdb_stdlog, " ");
> + val_print_unavailability_reason (value, gdb_stdlog);
> + }
> else
I'm splitting this output change into its separate patch,
and then applying a follow up.
Tested on x86_64 Fedora 17.
Thanks.
Andrew Burgess (1):
Make "set debug frame 1" use the standard print routine for optimized
out values.
Pedro Alves (1):
Make "set debug frame 1" output print <not saved> instead of
<optimized out>.
gdb/frame-unwind.c | 8 +++++---
gdb/frame.c | 6 +++++-
gdb/value.c | 5 ++++-
3 files changed, 14 insertions(+), 5 deletions(-)
--
1.7.11.7