Bug? GDB can't display c++ c'tor local variable.
Daniel Jacobowitz
drow@false.org
Fri Nov 14 20:41:00 GMT 2008
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
More information about the Gdb
mailing list