[Lldb-commits] [lldb] r125654 - /lldb/trunk/source/Plugins/ObjectFile/ELF/ObjectFileELF.cpp

Stephen Wilson wilsons at start.ca
Tue Feb 15 21:25:14 PST 2011


Author: wilsons
Date: Tue Feb 15 23:25:13 2011
New Revision: 125654

URL: http://llvm.org/viewvc/llvm-project?rev=125654&view=rev
Log:
linux: Set ArchSpec m_type correctly from object file.

An ArchSpec's type defaults to MachO.  Ensure the type is properly set
on ELF systems.


Modified:
    lldb/trunk/source/Plugins/ObjectFile/ELF/ObjectFileELF.cpp

Modified: lldb/trunk/source/Plugins/ObjectFile/ELF/ObjectFileELF.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Plugins/ObjectFile/ELF/ObjectFileELF.cpp?rev=125654&r1=125653&r2=125654&view=diff
==============================================================================
--- lldb/trunk/source/Plugins/ObjectFile/ELF/ObjectFileELF.cpp (original)
+++ lldb/trunk/source/Plugins/ObjectFile/ELF/ObjectFileELF.cpp Tue Feb 15 23:25:13 2011
@@ -1065,6 +1065,8 @@
     arch.GetTriple().setOSName ("linux");
     // TODO: determine if there is an OS in the ELF? Default to "gnu" for now
     arch.GetTriple().setVendorName("gnu");
+
+    arch.SetElfArch(m_header.e_machine, m_header.e_flags);
     return true;
 }
 





More information about the lldb-commits mailing list