Remove a spurious reference to ProcessElfCore
authorPavel Labath <labath@google.com>
Wed, 30 Nov 2016 10:25:02 +0000 (10:25 +0000)
committerPavel Labath <labath@google.com>
Wed, 30 Nov 2016 10:25:02 +0000 (10:25 +0000)
We were referencing a the process class from a register context, which seems
intuitively wrong. Also, the comment above that code is now definitely incorrect,
as ProcessElfCore now does support floating point registers. Also, the code
wasn't really doing anything, as it was just skipping a zero-initialization of a
field that was most likely zero-initialized anyway. Linux elf core FPR test still
passes after this.

llvm-svn: 288237

lldb/source/Plugins/Process/Utility/RegisterContextPOSIX_x86.cpp
lldb/tools/lldb-server/CMakeLists.txt

index 67134aa..99525b6 100644 (file)
@@ -18,9 +18,9 @@
 #include "lldb/Host/Endian.h"
 #include "lldb/Target/Target.h"
 #include "lldb/Target/Thread.h"
+#include "lldb/Target/Process.h"
 #include "llvm/Support/Compiler.h"
 
-#include "Plugins/Process/elf-core/ProcessElfCore.h"
 #include "RegisterContextPOSIX_x86.h"
 #include "RegisterContext_x86.h"
 
@@ -373,11 +373,6 @@ RegisterContextPOSIX_x86::RegisterContextPOSIX_x86(
 
   ::memset(&m_fpr, 0, sizeof(FPR));
 
-  // elf-core yet to support ReadFPR()
-  ProcessSP base = CalculateProcess();
-  if (base.get()->GetPluginName() == ProcessElfCore::GetPluginNameStatic())
-    return;
-
   m_fpr_type = eNotValid;
 }
 
index bb7ed35..990c419 100644 (file)
@@ -72,7 +72,6 @@ set( LLDB_USED_LIBS
   lldbPluginInstructionMIPS
   lldbPluginInstructionMIPS64
   lldbPluginObjectFilePECOFF
-  lldbPluginProcessElfCore
   lldbPluginExpressionParserClang
   lldbPluginExpressionParserGo
   )