This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: Debugging static variable in inlined member function
- From: Daniel Jacobowitz <drow at false dot org>
- To: Peng Yu <pengyu dot ut at gmail dot com>
- Cc: gdb at sourceware dot org
- Date: Mon, 8 Jan 2007 12:58:30 -0500
- Subject: Re: Debugging static variable in inlined member function
- References: <366c6f340701080755p2fcc08caq9bdc1d4d9debdd5b@mail.gmail.com>
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