[lldb-dev] [Bug 17209] ObjectFileELF::GetModuleSpecifications overrides OS and Vendor name with those from host
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Mon Aug 4 09:13:27 PDT 2014
http://llvm.org/bugs/show_bug.cgi?id=17209
emaste at freebsd.org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution|--- |FIXED
--- Comment #3 from emaste at freebsd.org ---
Fixed by Todd Fiala in r211907:
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.
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/lldb-dev/attachments/20140804/30d6cffa/attachment.html>
More information about the lldb-dev
mailing list