[lldb-dev] ELF parsing/disassembly almost, but not quite working?
eli.friedman at gmail.com
Tue Jun 22 20:35:12 PDT 2010
On Tue, Jun 22, 2010 at 7:47 PM, Jason Molenda <jmolenda at apple.com> wrote:
> 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.
I'm not anywhere near getting "run" working, so I guess I'll have to
wait for that.
> 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.
I'll try messing with it once I get some real output.
More information about the lldb-dev