GCC 4.1.0 doesn't generate DWARF 2 output for function arguments?
Daniel Jacobowitz
drow@false.org
Fri May 5 15:55:00 GMT 2006
On Fri, Apr 07, 2006 at 12:54:44AM +0100, Nick Roberts wrote:
> OK, I've changed the default value in new_symbol from LOC_STATIC to
> LOC_OPTIMIZED_OUT. This means "info locals" works as expected. The
> command "info args" still gives "No arguments." when the arguments are
> not used and they've been optimised out. I've also checked that a static
> variable is correctly identified as LOC_STATIC and that no new fails are
> introduced into the testsuite.
>
> I guess it still might break something else though, so how about applying
> this patch after the next release so it gets a bit of testing first?
Hi Nick,
I don't know when the next release is going to be; but I don't think
there's much benefit in waiting. Your patch looks right to me.
> 2006-04-07 Nick Roberts <nickrob@snap.net.nz>
>
> * dwarf2read.c (new_symbol): Make LOC_OPTIMIZED_OUT the default
> value for a symbol.
OK.
--
Daniel Jacobowitz
CodeSourcery
More information about the Gdb
mailing list