This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: Bug? GDB can't display c++ c'tor local variable.
- From: Daniel Jacobowitz <drow at false dot org>
- To: Koffee Lue <klu2008 at gmail dot com>
- Cc: gdb <gdb at sourceware dot org>
- Date: Fri, 14 Nov 2008 15:40:26 -0500
- Subject: Re: Bug? GDB can't display c++ c'tor local variable.
- References: <8440576b0811141231u55336182p8e16563889f4143e@mail.gmail.com>
On Fri, Nov 14, 2008 at 03:31:11PM -0500, Koffee Lue wrote:
> Hi,
>
> I found that GDB can't display local variables in a c++ constructor.
>
> Please see the testing code below. When I stepped into the c'tor, and
> typed ''info lo'', gdb responded "No locals.", however `tmp' is a
> local with type int.
>
> I searched on the web and somebody said it's a bug of gcc rather than
> gdb. But that's for gcc 3.x years ago. (see:
> http://gcc.gnu.org/ml/gcc-bugs/2007-08/msg00727.html)
It was only just fixed. It's GCC PR debug/27574.
--
Daniel Jacobowitz
CodeSourcery