c++ member arrays with variable size

Daniel Jacobowitz drow@false.org
Sun Nov 4 03:10:00 GMT 2007


On Sat, Nov 03, 2007 at 06:52:51PM -0700, D Haley wrote:
> Is it possible to identify these in GDB, or
> alternatively how else can I view these arrays in the
> debugger, short of rewriting it?

Most of the time, if a variable does not show up in "info locals",
that means your compiler has not emitted debug info for it.  I tried
your example with G++ 4.2 on x86_64-linux, and did see the local
array.

-- 
Daniel Jacobowitz
CodeSourcery



More information about the Gdb mailing list