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

LLDB printing dynamic C arrays


  • Subject: LLDB printing dynamic C arrays
  • From: Andreas Grosam <email@hidden>
  • Date: Mon, 04 Jun 2012 09:48:18 +0200

Say, I have a dynamic buffer:

int* buffer = (int*)malloc(len*sizeof(int));


In Xcode's debug console using gdb, I would print the content of the array using this syntax:

(gdb) p *buffer@10
$1 = { … }

How do I accomplish this in LLDB?

It seems, it is not yet implemented - but this is sort of unbelievable (since it is now the recommended debugger).


Andreas



 _______________________________________________
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: LLDB printing dynamic C arrays
      • From: Roland King <email@hidden>
  • Prev by Date: Re: add localized readme, license etc. in a distribution package using productbuild
  • Next by Date: Re: add localized readme, license etc. in a distribution package using productbuild
  • Previous by thread: RE: Can I remove old Simulators? (solved)
  • Next by thread: Re: LLDB printing dynamic C arrays
  • Index(es):
    • Date
    • Thread