From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 32068 invoked by alias); 4 Nov 2007 03:10:27 -0000 Received: (qmail 32018 invoked by uid 22791); 4 Nov 2007 03:10:27 -0000 X-Spam-Check-By: sourceware.org Received: from NaN.false.org (HELO nan.false.org) (208.75.86.248) by sourceware.org (qpsmtpd/0.31) with ESMTP; Sun, 04 Nov 2007 03:10:25 +0000 Received: from nan.false.org (localhost [127.0.0.1]) by nan.false.org (Postfix) with ESMTP id 199119833E; Sun, 4 Nov 2007 03:10:24 +0000 (GMT) Received: from caradoc.them.org (22.svnf5.xdsl.nauticom.net [209.195.183.55]) by nan.false.org (Postfix) with ESMTP id CC6879829E; Sun, 4 Nov 2007 03:10:23 +0000 (GMT) Received: from drow by caradoc.them.org with local (Exim 4.68) (envelope-from ) id 1IoVsU-0002F7-WD; Sat, 03 Nov 2007 23:10:23 -0400 Date: Sun, 04 Nov 2007 03:10:00 -0000 From: Daniel Jacobowitz To: D Haley Cc: gdb@sourceware.org Subject: Re: c++ member arrays with variable size Message-ID: <20071104031022.GB8183@caradoc.them.org> Mail-Followup-To: D Haley , gdb@sourceware.org References: <460780.34754.qm@web36815.mail.mud.yahoo.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <460780.34754.qm@web36815.mail.mud.yahoo.com> User-Agent: Mutt/1.5.15 (2007-04-09) X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2007-11/txt/msg00023.txt.bz2 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