[lldb-dev] OS X: Disassemble cmd not working

Greg Clayton gclayton at apple.com
Mon Mar 14 11:54:00 PDT 2011

LLDB doesn't currently handle packed executables. I have filed in internal bug to track this.

On Mar 14, 2011, at 11:33 AM, Tomas Nemec wrote:

> Ok, please find the executables attached. I also included the source so that you can see what is going on.
> On Mon, Mar 14, 2011 at 19:29, Greg Clayton <gclayton at apple.com> wrote:
> Please do attach the executable.
> If the instruction you care about is in a function you can try disassembling by function:
> lldb foo.o
> (lldb) disassembly -n main
> My only guess here is that the disassembler thinks it needs more than one byte and is refusing to disassemble because it thinks it doesn't have enough bytes.
> On Mar 14, 2011, at 10:36 AM, Tomas Nemec wrote:
> > Hello,
> > I tried to disassemble a packed executable after hitting a (hardcoded) breakpoint and it cannot be done :-( I can view the memory. I presume this has something to do with the initial segment/section information in the Mach-O file header being changed by the packer?
> > I can provide the file if the need be. (It has less than 3KB)
> > _______________________________________________
> > lldb-dev mailing list
> > lldb-dev at cs.uiuc.edu
> > http://lists.cs.uiuc.edu/mailman/listinfo/lldb-dev
> <hello32.orig><hello32.packed><hello.c>

More information about the lldb-dev mailing list