Introduces core file support for Linux x86-64 using 'lldb a.out -c core'.
TODO: Support for RegisterContext_x86_64::ReadFPR.
Patch by Samuel Jacob!
llvm-svn: 186207
diff --git a/lldb/source/Plugins/DynamicLoader/POSIX-DYLD/AuxVector.cpp b/lldb/source/Plugins/DynamicLoader/POSIX-DYLD/AuxVector.cpp
index 7123786..3ec67fe 100644
--- a/lldb/source/Plugins/DynamicLoader/POSIX-DYLD/AuxVector.cpp
+++ b/lldb/source/Plugins/DynamicLoader/POSIX-DYLD/AuxVector.cpp
@@ -19,6 +19,8 @@
#include "lldb/Core/Log.h"
#include "lldb/Target/Process.h"
+#include "Plugins/Process/elf-core/ProcessElfCore.h"
+
#include "AuxVector.h"
using namespace lldb;
@@ -53,8 +55,10 @@
DataBufferSP
AuxVector::GetAuxvData()
{
-
- return lldb_private::Host::GetAuxvData(m_process);
+ if (m_process->GetPluginName() == ProcessElfCore::GetPluginNameStatic())
+ return static_cast<ProcessElfCore *>(m_process)->GetAuxvData();
+ else
+ return lldb_private::Host::GetAuxvData(m_process);
}
void