This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: c++ member arrays with variable size
- From: Daniel Jacobowitz <drow at false dot org>
- To: D Haley <mycae at yahoo dot com>
- Cc: gdb at sourceware dot org
- Date: Sat, 3 Nov 2007 23:10:22 -0400
- Subject: Re: c++ member arrays with variable size
- References: <460780.34754.qm@web36815.mail.mud.yahoo.com>
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