This is the mail archive of the
gdb-prs@sourceware.org
mailing list for the GDB project.
Re: symtab/2323: gdwarf-2 register params with backing storecannot be displayed
- From: Daniel Jacobowitz <drow at false dot org>
- To: nobody at sources dot redhat dot com
- Cc: gdb-prs at sources dot redhat dot com,
- Date: 28 Sep 2007 13:28:01 -0000
- Subject: Re: symtab/2323: gdwarf-2 register params with backing storecannot be displayed
- Reply-to: Daniel Jacobowitz <drow at false dot org>
The following reply was made to PR symtab/2323; it has been noted by GNATS.
From: Daniel Jacobowitz <drow@false.org>
To: mblower@chipwrights.com
Cc: gdb-gnats@sources.redhat.com
Subject: Re: symtab/2323: gdwarf-2 register params with backing store
cannot be displayed
Date: Fri, 28 Sep 2007 09:27:24 -0400
On Fri, Sep 28, 2007 at 01:12:35PM -0000, mblower@chipwrights.com wrote:
> Using -gdwarf-2 to build debug information, when break inside "stow_it", cannot display parameter r4, instead gdb gets an error stating "Asking for position 0 of stack, stack only contains 0 elements." Similar difficulty with "info frame" and some of the other expression display commands. If I rebuild with -gstabs then gdb does not have this difficulty.
What compiler and version are you using? This is probably a symptom
of incorrect debugging information emitted by your compiler.
The output of readelf -wio on the binary might help.
--
Daniel Jacobowitz
CodeSourcery