diff options
author | Stephen Wilson <wilsons@start.ca> | 2011-02-16 05:25:13 +0000 |
---|---|---|
committer | Stephen Wilson <wilsons@start.ca> | 2011-02-16 05:25:13 +0000 |
commit | de049291fd61de27203fef51975e025040c362f2 (patch) | |
tree | c0543d8d73b584aaa436d196d46f6eff40a3bf9f /lldb/source/Plugins/ObjectFile/ELF/ObjectFileELF.cpp | |
parent | d879a4d12a2ad241c26e144bfc430f31f74922f2 (diff) | |
download | bcm5719-llvm-de049291fd61de27203fef51975e025040c362f2.tar.gz bcm5719-llvm-de049291fd61de27203fef51975e025040c362f2.zip |
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.
llvm-svn: 125654
Diffstat (limited to 'lldb/source/Plugins/ObjectFile/ELF/ObjectFileELF.cpp')
-rw-r--r-- | lldb/source/Plugins/ObjectFile/ELF/ObjectFileELF.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lldb/source/Plugins/ObjectFile/ELF/ObjectFileELF.cpp b/lldb/source/Plugins/ObjectFile/ELF/ObjectFileELF.cpp index a16e4868b07..0739b978aa3 100644 --- a/lldb/source/Plugins/ObjectFile/ELF/ObjectFileELF.cpp +++ b/lldb/source/Plugins/ObjectFile/ELF/ObjectFileELF.cpp @@ -1065,6 +1065,8 @@ ObjectFileELF::GetArchitecture (ArchSpec &arch) 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; } |