c++ member arrays with variable size

Jim Ingham jingham@apple.com
Mon Nov 5 18:55:00 GMT 2007


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



More information about the Gdb mailing list