From: Jim Ingham <jingham@apple.com>
To: Daniel Jacobowitz <drow@false.org>
Cc: D Haley <mycae@yahoo.com>, gdb@sourceware.org
Subject: Re: c++ member arrays with variable size
Date: Mon, 05 Nov 2007 18:55:00 -0000 [thread overview]
Message-ID: <5B6B8FC6-90BB-4188-88E8-700151E68B7A@apple.com> (raw)
In-Reply-To: <20071104143433.GA10645@caradoc.them.org>
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
next prev parent reply other threads:[~2007-11-05 18:55 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-11-04 1:52 D Haley
2007-11-04 3:10 ` Daniel Jacobowitz
2007-11-04 11:26 ` D Haley
2007-11-04 14:34 ` Daniel Jacobowitz
2007-11-05 18:55 ` Jim Ingham [this message]
2007-11-09 6:42 ` D Haley
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=5B6B8FC6-90BB-4188-88E8-700151E68B7A@apple.com \
--to=jingham@apple.com \
--cc=drow@false.org \
--cc=gdb@sourceware.org \
--cc=mycae@yahoo.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox