• 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
Printing dynamic arrays in LLDB
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Printing dynamic arrays in LLDB


  • Subject: Printing dynamic arrays in LLDB
  • From: Tom Seddon <email@hidden>
  • Date: Tue, 04 Dec 2012 19:34:04 +0000

(There was a thread about this a while ago, according to the archives but all the followups in the web archives are missing message bodies. So I've no idea what the conclusion was.)

If I've got a dynamically-allocated array, how can I view it in lldb?

In gdb, one could use the @ symbol to do things like this:

	p x[0]@10

which would print 10 items, starting from the address of x[0]. Very convenient, if you don't have time to print out every single item individually.

There appears to be no such thing in lldb. Can that really be true?

Can anybody advise?

Thanks,

--Tom


 _______________________________________________
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

  • Prev by Date: Re: storing git version in the plist
  • Next by Date: Re: storing git version in the plist
  • Previous by thread: Re: storing git version in the plist
  • Next by thread: Arbitrary dependencies for targets?
  • Index(es):
    • Date
    • Thread