This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: GCC 4.1.0 doesn't generate DWARF 2 output for function arguments?
- From: Daniel Jacobowitz <drow at false dot org>
- To: Nick Roberts <nickrob at snap dot net dot nz>
- Cc: gdb at sources dot redhat dot com
- Date: Fri, 5 May 2006 11:55:06 -0400
- Subject: Re: GCC 4.1.0 doesn't generate DWARF 2 output for function arguments?
- References: <17457.1343.364824.430939@farnswood.snap.net.nz> <20060403135713.GA6308@nevyn.them.org> <17457.36376.661285.541008@farnswood.snap.net.nz> <20060403211050.GA15501@nevyn.them.org> <17459.25334.413731.57965@farnswood.snap.net.nz> <20060405133638.GC28872@nevyn.them.org> <20060406235444.2321662A99@farnswood.snap.net.nz>
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