[lldb-dev] lldb.macosx.heap for iOS?

Joe Ranieri joe at alacatialabs.com
Tue Aug 6 10:53:31 PDT 2013

On Tue, Aug 6, 2013 at 11:36 AM, Nick Xiao (nixiao) <nixiao at cisco.com>wrote:

> Hi folks,
> I’m playing with lldb.macosx.heap. It works well on Mac.
> Though the document says it’s only for Mac OS X, I tried it when debugging
> an iOS app.
> It managed to get loaded. but Xcode crashes when I was issuing a cstr_refs
> cmd.
> I’m wondering what it takes to support iOS?
> I saw someone on StackOverflow said it could work on iOS with Xcode 4.5-.
> Not sure if it’s the case. May have a try with a Xcode 4.5 tomorrow.
> Thanks.
> /nick

If it's anything like 32-bit OS X, it's a matter of MCJIT
(RuntimeDyldMachO::processRelocationRef) not supporting scattered
relocations generated by the platform's MachOObjectWriter. I've been
hacking at this when I find spare time for 32-bit x86, but spare time is
hard to come by.

-- Joe Ranieri
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/lldb-dev/attachments/20130806/f456c93e/attachment.html>

More information about the lldb-dev mailing list