debug/10156: g++ 3.2 fails to emit debug location info for a local variable inside a class constructor

Daniel Jacobowitz drow@mvista.com
Wed May 7 13:52:00 GMT 2003


On Wed, May 07, 2003 at 08:00:57AM +0200, walter steffe wrote:
> 
> 
> I am facing a similar problem with gcc 3.2.3:
>  1) Sometime the debugger (gdb 5.3) does not stop exactly on a breakpoint but 
> a few line after.

Are you using optimized code?  That's just life.

>  2) Almost all of the local variables of a function are not visible (saying: 
> No symbol "foo" in current context).

It is most likely a GDB bug.  Please try a CVS snapshot of GDB.

-- 
Daniel Jacobowitz
MontaVista Software                         Debian GNU/Linux Developer



More information about the Gcc-bugs mailing list