From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29474 invoked by alias); 5 Nov 2007 18:55:40 -0000 Received: (qmail 29463 invoked by uid 22791); 5 Nov 2007 18:55:39 -0000 X-Spam-Check-By: sourceware.org Received: from mail-out4.apple.com (HELO mail-out4.apple.com) (17.254.13.23) by sourceware.org (qpsmtpd/0.31) with ESMTP; Mon, 05 Nov 2007 18:55:37 +0000 Received: from relay13.apple.com (relay13.apple.com [17.128.113.29]) by mail-out4.apple.com (Postfix) with ESMTP id 24F2F1807F3D; Mon, 5 Nov 2007 10:55:36 -0800 (PST) Received: from relay13.apple.com (unknown [127.0.0.1]) by relay13.apple.com (Symantec Mail Security) with ESMTP id 01672282F0; Mon, 5 Nov 2007 10:55:36 -0800 (PST) X-AuditID: 1180711d-a1df1bb000000861-07-472f6727bd5b Received: from gdbrulez.apple.com (gdbrulez.apple.com [17.201.22.244]) by relay13.apple.com (Apple SCV relay) with ESMTP id 6EC1E2835D; Mon, 5 Nov 2007 10:55:35 -0800 (PST) Cc: D Haley , gdb@sourceware.org Message-Id: <5B6B8FC6-90BB-4188-88E8-700151E68B7A@apple.com> From: Jim Ingham To: Daniel Jacobowitz In-Reply-To: <20071104143433.GA10645@caradoc.them.org> Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit X-Mailer: Apple Mail (2.912) Mime-Version: 1.0 (Apple Message framework v912) Subject: Re: c++ member arrays with variable size Date: Mon, 05 Nov 2007 18:55:00 -0000 References: <20071104031022.GB8183@caradoc.them.org> <75699.86396.qm@web36804.mail.mud.yahoo.com> <20071104143433.GA10645@caradoc.them.org> 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/msg00034.txt.bz2 Daniel's right, gcc generated stabs (regardless of platform) omits debug records for variable length arrays. DWARF reports them as arrays of 0 size. We've actually supported DWARF for a while - starting with Xcode 2.4. If you are on Tiger, you might want to download the latest tools - Xcode 2.5 from Apple's developer site. There aren't any tools hosted on Panther or earlier that work with DWARF, so if you're still on Panther, you will have to upgrade to Tiger. Jim On Nov 4, 2007, at 6:34 AM, Daniel Jacobowitz wrote: > On Sun, Nov 04, 2007 at 03:26:50AM -0800, D Haley wrote: >> Hmm, I tried on another machine and yes, i can see it. >> For the record on the non-working version I am using >> apple-darwin8-g++ (GCC) 4.0.1. Minus one point for >> apple :( . > > This is probably because Apple's still using the older stabs debug > format. I believe they either have switched, or are switching, to > DWARF-2; that will help a lot. > > -- > Daniel Jacobowitz > CodeSourcery