[lldb-dev] ELF parsing/disassembly almost, but not quite working?

Jason Molenda jmolenda at apple.com
Tue Jun 22 19:47:24 PDT 2010

On Jun 22, 2010, at 7:33 PM, Eli Friedman wrote:

> On Tue, Jun 22, 2010 at 7:25 PM, Charles Davis <cdavis at mymail.mines.edu> wrote:
>> On Jun 22, 2010, at 8:01 PM, Eli Friedman wrote:
>>> (lldb) file /tmp/a
>>> Current executable set to '/tmp/a' (x86_64).
>> Well there's your problem!
>> The file indeed belongs to the ELF32 class (I checked), but LLDB misidentified it as an ELF64 object.
> The arch printed after the filename has nothing to do with the actual
> file.  (Probably a bug, but not really the one I'm asking about...)

Hi Eli,

Right now disassemble doesn't work until you've started execution.  Gotta fix that when I get a chance. 

On Mac OS X lldb defaults to assuming it is looking at an x86_64 file.  If you are running it on a 32-bit file you need to explicitly invoke it 'lldb -a i386 filename'.  I don't know if this will hold true on Linux as well.


More information about the lldb-dev mailing list