This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [patch] Backtrace prints wrong argument value
- From: Luis Machado <luisgpm at linux dot vnet dot ibm dot com>
- To: Daniel Jacobowitz <drow at false dot org>
- Cc: gdb-patches at sources dot redhat dot com
- Date: Wed, 16 May 2007 02:34:00 -0300
- Subject: Re: [patch] Backtrace prints wrong argument value
- References: <1177527233.12599.42.camel@localhost> <20070425191304.GA1283@caradoc.them.org>
- Reply-to: luisgpm at linux dot vnet dot ibm dot com
On Wed, 2007-04-25 at 15:13 -0400, Daniel Jacobowitz wrote:
> A valid location list for func1 could say that arg1 is valid
> in r20 during the call to abort; the -1 puts us on the call, instead
> of after it, in the unrelated func2.
>
> I believe this is considered a known weakness of the DWARF
> representation, which does not represent state before an instruction
> separately from state after it. The debug info does not tell us
> whether the location is valid in the middle of the call.
Do you have anything in mind in order to better handle this situation
instead of showing wrong values in backtrace every now and then?
>From your comment it wasn't clear if hiding possibly wrong values is
worse than showing them sometimes.
Regards,
Luis