diff options
author | Ashok Thirumurthi <ashok.thirumurthi@intel.com> | 2013-07-17 16:06:12 +0000 |
---|---|---|
committer | Ashok Thirumurthi <ashok.thirumurthi@intel.com> | 2013-07-17 16:06:12 +0000 |
commit | 4f01ff8bfe4961e3ce6f1b9b6520f5a5588e5590 (patch) | |
tree | 51ea1f17531035d8c53eccc2718bc4eddcb0e90b /lldb/source/Plugins/DynamicLoader | |
parent | c834c70986b01f5086d72bc5c5e564d7d0ebbc74 (diff) | |
download | bcm5719-llvm-4f01ff8bfe4961e3ce6f1b9b6520f5a5588e5590.tar.gz bcm5719-llvm-4f01ff8bfe4961e3ce6f1b9b6520f5a5588e5590.zip |
Re-introduces ELF core file support for Linux x86-64
Usage: 'lldb a.out -c core'.
TODO: FreeBSD support.
TODO: Support for AVX registers.
TODO: Refactor so that RegisterContextCore* don't inherit from classes that use ProcessMonitor
to fix the build on OS/X.
llvm-svn: 186516
Diffstat (limited to 'lldb/source/Plugins/DynamicLoader')
-rw-r--r-- | lldb/source/Plugins/DynamicLoader/POSIX-DYLD/AuxVector.cpp | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/lldb/source/Plugins/DynamicLoader/POSIX-DYLD/AuxVector.cpp b/lldb/source/Plugins/DynamicLoader/POSIX-DYLD/AuxVector.cpp index 7123786b601..2604ae67016 100644 --- a/lldb/source/Plugins/DynamicLoader/POSIX-DYLD/AuxVector.cpp +++ b/lldb/source/Plugins/DynamicLoader/POSIX-DYLD/AuxVector.cpp @@ -19,6 +19,10 @@ #include "lldb/Core/Log.h" #include "lldb/Target/Process.h" +#if defined(__linux__) or defined(__FreeBSD__) +#include "Plugins/Process/elf-core/ProcessElfCore.h" +#endif + #include "AuxVector.h" using namespace lldb; @@ -53,7 +57,10 @@ ParseAuxvEntry(DataExtractor &data, DataBufferSP AuxVector::GetAuxvData() { - +#if defined(__linux__) or defined(__FreeBSD__) + if (m_process->GetPluginName() == ProcessElfCore::GetPluginNameStatic()) + return static_cast<ProcessElfCore *>(m_process)->GetAuxvData(); +#endif return lldb_private::Host::GetAuxvData(m_process); } |