[Lldb-commits] [PATCH] Update ObjectFileELF to detect ELF triple based on ELF notes and the ELF header.

Todd Fiala tfiala at google.com
Thu Jun 26 10:13:43 PDT 2014


With this patch, I get the following loading a FreeBSD 10.0.510 elf object file:

tfiala-macpro:lldb tfiala$ DerivedData/lldb/Build/Products/Debug/lldb
(lldb) log enable lldb modules
(lldb) file /tmp/ls-freebsd
...
<lldb.driver.main-thread> ObjectFileELF::RefineModuleDetailsFromNote parsing note name='FreeBSD', type=1
<lldb.driver.main-thread> ObjectFileELF::RefineModuleDetailsFromNote detected FreeBSD 10.0.510
...
Current executable set to '/tmp/ls-freebsd' (x86_64).
(lldb) image list -b -t
[  0] ls-freebsd x86_64-unknown-freebsd10.0
(lldb)

http://reviews.llvm.org/D4302

Files:
  source/Plugins/ObjectFile/ELF/ObjectFileELF.cpp
  source/Plugins/ObjectFile/ELF/ObjectFileELF.h
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D4302.10895.patch
Type: text/x-patch
Size: 22284 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20140626/7b2a98f5/attachment.bin>


More information about the lldb-commits mailing list