hanchenye-llvm-project/lldb/source/Plugins/ObjectFile
Todd Fiala b91de7861c Fix ObjectFileELF to determine architectures independent of host.
Previously ObjectFileELF was simplifying and assuming the object file it was
looking at was the same as the host architecture/triple.  This would break
attempts to run, say, lldb on MacOSX against lldb-gdbserver on Linux since
the MacOSX lldb would say that the linux elf file was really an Apple MacOSX
architecture.  Chaos would ensue.

This change allows the elf file to parse ELF notes for Linux, FreeBSD and
NetBSD, and determine the OS appropriately from them.  It also initializes
the OS type from the ELF header OSABI if it is set (which it is for FreeBSD
but not for Linux).

Added a test with freebsd and linux images that verify that 
'(lldb) image list -t -A' prints out the expected architecture for each.

llvm-svn: 211907
2014-06-27 16:52:49 +00:00
..
ELF Fix ObjectFileELF to determine architectures independent of host. 2014-06-27 16:52:49 +00:00
JIT Remove useless declaration 2014-04-21 17:43:17 +00:00
Mach-O Patch from Keno Fischer to enable JITLoaderGDB with mach-o file support. 2014-06-24 22:22:43 +00:00
PECOFF Patch from Keno Fischer to enable JITLoaderGDB with mach-o file support. 2014-06-24 22:22:43 +00:00
CMakeLists.txt Make cmake build the new ObjectFileJIT. 2014-03-24 23:11:37 +00:00