[Lldb-commits] [lldb] r126406 - in /lldb/trunk/source/Plugins/Process/Linux: LinuxThread.cpp ProcessLinux.cpp

Stephen Wilson wilsons at start.ca
Thu Feb 24 11:17:09 PST 2011


Author: wilsons
Date: Thu Feb 24 13:17:09 2011
New Revision: 126406

URL: http://llvm.org/viewvc/llvm-project?rev=126406&view=rev
Log:
linux: Use ArchSpec::GetCore and the ArchSpec::Core enums.


Modified:
    lldb/trunk/source/Plugins/Process/Linux/LinuxThread.cpp
    lldb/trunk/source/Plugins/Process/Linux/ProcessLinux.cpp

Modified: lldb/trunk/source/Plugins/Process/Linux/LinuxThread.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Plugins/Process/Linux/LinuxThread.cpp?rev=126406&r1=126405&r2=126406&view=diff
==============================================================================
--- lldb/trunk/source/Plugins/Process/Linux/LinuxThread.cpp (original)
+++ lldb/trunk/source/Plugins/Process/Linux/LinuxThread.cpp Thu Feb 24 13:17:09 2011
@@ -65,13 +65,13 @@
     {
         ArchSpec arch = process.GetTarget().GetArchitecture();
 
-        switch (arch.GetGenericCPUType())
+        switch (arch.GetCore())
         {
         default:
             assert(false && "CPU type not supported!");
             break;
 
-        case ArchSpec::eCPU_x86_64:
+        case ArchSpec::eCore_x86_64_x86_64:
             m_reg_context_sp.reset(new RegisterContextLinux_x86_64(*this, 0));
             break;
         }

Modified: lldb/trunk/source/Plugins/Process/Linux/ProcessLinux.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Plugins/Process/Linux/ProcessLinux.cpp?rev=126406&r1=126405&r2=126406&view=diff
==============================================================================
--- lldb/trunk/source/Plugins/Process/Linux/ProcessLinux.cpp (original)
+++ lldb/trunk/source/Plugins/Process/Linux/ProcessLinux.cpp Thu Feb 24 13:17:09 2011
@@ -353,14 +353,14 @@
     const uint8_t *opcode = NULL;
     size_t opcode_size = 0;
 
-    switch (arch.GetGenericCPUType())
+    switch (arch.GetCore())
     {
     default:
         assert(false && "CPU type not supported!");
         break;
 
-    case ArchSpec::eCPU_i386:
-    case ArchSpec::eCPU_x86_64:
+    case ArchSpec::eCore_x86_32_i386:
+    case ArchSpec::eCore_x86_64_x86_64:
         opcode = g_i386_opcode;
         opcode_size = sizeof(g_i386_opcode);
         break;





More information about the lldb-commits mailing list