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: Bug? GDB can't display c++ c'tor local variable.


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


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