This is the mail archive of the gdb@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Debugging static variable in inlined member function


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]