This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH v2] Add Guile frame unwinder interface
- From: Eli Zaretskii <eliz at gnu dot org>
- To: Pedro Alves <palves at redhat dot com>
- Cc: wingo at igalia dot com, gdb-patches at sourceware dot org, asmundak at google dot com
- Date: Mon, 09 Mar 2015 18:22:05 +0200
- Subject: Re: [PATCH v2] Add Guile frame unwinder interface
- Authentication-results: sourceware.org; auth=none
- References: <87oao7wi66 dot fsf at igalia dot com> <87zj7msbly dot fsf at igalia dot com> <54FDBF21 dot 4090400 at redhat dot com>
- Reply-to: Eli Zaretskii <eliz at gnu dot org>
> Date: Mon, 09 Mar 2015 15:41:21 +0000
> From: Pedro Alves <palves@redhat.com>
> CC: asmundak@google.com
>
> >From a glimpse over the code, I think this actually marks it as
> "<not saved>" (optimized out), right? That would be the correct
> thing to do. Marking a register as "<unavailable>" is also possible,
> but it is a different thing -- it means the value exists, but gdb
> couln't get to it, because e.g., the core file is trimmed, or the
> ptrace interface is missing access to some registers.
Actually, from past discussions I understand that "optimized out" more
often than not means "value exists, but GDB is not smart enough to
interpret the DWARF info to find it and/or GCC didn't put enough of
the info there to begin with". So I wish we would at some point says
something different when this is the case, instead of hiding behind
unnamed "optimizations".