• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Variable length arrays in debugger
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Variable length arrays in debugger


  • Subject: Re: Variable length arrays in debugger
  • From: Tverdokhleb Andrey <email@hidden>
  • Date: Wed, 1 Oct 2008 12:16:42 -0700

Jim,

On Oct 1, 2008, at 11:41 , Jim Ingham wrote:

gcc doesn't emit any debug information that tells the size of variable length arrays. If you think about it a bit, it would be kind of hard to express, for instance you could do:


void foo (int input) {

 int size
 int array[size];
 size += input;
 // Now how do I figure out what the size of "array" is?

}


It's irrelevant what size it has as long as type is known. They deal with this all the time when resolve pointers to heap allocated arrays in debugger views - just display it as an 'unlimited' array.
&array also has to be available. Showing it as 'out of scope' is a plain bug in my opinion and doesn't look like a tough one so far.


Andrey

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Variable length arrays in debugger
      • From: Jim Ingham <email@hidden>
References: 
 >Variable length arrays in debugger (From: Tverdokhleb Andrey <email@hidden>)
 >Re: Variable length arrays in debugger (From: Howard Moon <email@hidden>)
 >Re: Variable length arrays in debugger (From: "Sean McBride" <email@hidden>)
 >Re: Variable length arrays in debugger (From: Jim Ingham <email@hidden>)

  • Prev by Date: Re: Mini Debugger missing "Debugger Strip"
  • Next by Date: Re: Variable length arrays in debugger
  • Previous by thread: Re: Variable length arrays in debugger
  • Next by thread: Re: Variable length arrays in debugger
  • Index(es):
    • Date
    • Thread