Debugging static variable in inlined member function

Daniel Jacobowitz drow@false.org
Mon Jan 8 17:58:00 GMT 2007


On Mon, Jan 08, 2007 at 09:55:31AM -0600, Peng Yu wrote:
> Hi,
> 
> I have the following program listed below this email. I can not print
> _a in the inlined version. But it is OK to print _a in the non-inlined
> version. Can you tell me how to debug the inlined version of _a?

GDB support for inlined functions is known to be poor.  GCC's debug
info for inlined functions also has some problems.  There is not much
you can do to work around that.

-- 
Daniel Jacobowitz
CodeSourcery



More information about the Gdb mailing list