diff options
author | Ed Maste <emaste@freebsd.org> | 2013-07-22 20:01:34 +0000 |
---|---|---|
committer | Ed Maste <emaste@freebsd.org> | 2013-07-22 20:01:34 +0000 |
commit | 40315fea3c99c6726a9d9bf128f84fc520b5c976 (patch) | |
tree | 391f99daa945e97d6d2890c061bc4654849241ec | |
parent | 4d2ea3c69683b97cacaaafc3156a33827de5f66d (diff) | |
download | bcm5719-llvm-40315fea3c99c6726a9d9bf128f84fc520b5c976.tar.gz bcm5719-llvm-40315fea3c99c6726a9d9bf128f84fc520b5c976.zip |
elf-core: Remove SetTriple workaround
On FreeBSD I see that Arch, Vendor, OS, and Environment are unchanged
after this call (for x86_64, at least), and core debugging works without
it.
If we need to restore it we should be able to switch on
arch.GetTriple.getOS() instead of a compile-time #ifdef.
Thanks to Daniel Malea for testing on Linux.
llvm-svn: 186862
-rw-r--r-- | lldb/source/Plugins/Process/elf-core/ProcessElfCore.cpp | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/lldb/source/Plugins/Process/elf-core/ProcessElfCore.cpp b/lldb/source/Plugins/Process/elf-core/ProcessElfCore.cpp index 3e7d07d77a2..945e34f27e3 100644 --- a/lldb/source/Plugins/Process/elf-core/ProcessElfCore.cpp +++ b/lldb/source/Plugins/Process/elf-core/ProcessElfCore.cpp @@ -206,21 +206,6 @@ ProcessElfCore::DoLoadCore () // Even if the architecture is set in the target, we need to override // it to match the core file which is always single arch. ArchSpec arch (m_core_module_sp->GetArchitecture()); - switch (arch.GetCore()) - { - case ArchSpec::eCore_x86_32_i486: - arch.SetTriple ("i386", m_target.GetPlatform().get()); - break; - case ArchSpec::eCore_x86_64_x86_64: -#ifdef __FreeBSD__ - arch.SetTriple ("x86_64-freebsd-unknown", m_target.GetPlatform().get()); -#else - arch.SetTriple ("x86_64-linux-gnu", m_target.GetPlatform().get()); -#endif - break; - default: - assert(false && "Unhandled core type"); - } if (arch.IsValid()) m_target.SetArchitecture(arch); |