This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [RFA] [gdb.threads/testsuite] failure while checking backtrace into main
On Fri, Feb 02, 2007 at 04:10:18PM +0100, Denis PILAT wrote:
> There is no location for argc and argv. It might be a gcc4.1.1 bug, I
> don't know how much it can optimize the code, argc and argv are not used.
>
> For gcc3.3 there are DW_AT_location for both argc and argv.
The missing location is strange, since you're compiling without
optimization; that's probably a bug. But it's a separate bug that
they don't show up in the list; I'd rather fix dwarf2read.c than the
test.
IIRC the problem is that we use different LOC_* values for function
arguments. I have a patch somewhere that used a different mechanism,
so that we could mark arguments as LOC_OPTIMIZED_OUT. I'll try to port
it to the current GDB next week.
--
Daniel Jacobowitz
CodeSourcery