[Lldb-commits] [lldb] r374114 - StopInfo/Mach: Delete PPC support

Vedant Kumar via lldb-commits lldb-commits at lists.llvm.org
Tue Oct 8 13:47:44 PDT 2019


Author: vedantk
Date: Tue Oct  8 13:47:44 2019
New Revision: 374114

URL: http://llvm.org/viewvc/llvm-project?rev=374114&view=rev
Log:
StopInfo/Mach: Delete PPC support

LLDB appears to have at least partial support for PPC, but PPC on Mach
isn't a thing AFAIK.

Differential Revision: https://reviews.llvm.org/D68661

Modified:
    lldb/trunk/source/Plugins/Process/Utility/StopInfoMachException.cpp

Modified: lldb/trunk/source/Plugins/Process/Utility/StopInfoMachException.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Plugins/Process/Utility/StopInfoMachException.cpp?rev=374114&r1=374113&r2=374114&view=diff
==============================================================================
--- lldb/trunk/source/Plugins/Process/Utility/StopInfoMachException.cpp (original)
+++ lldb/trunk/source/Plugins/Process/Utility/StopInfoMachException.cpp Tue Oct  8 13:47:44 2019
@@ -78,21 +78,6 @@ const char *StopInfoMachException::GetDe
       }
       break;
 
-    case llvm::Triple::ppc:
-    case llvm::Triple::ppc64:
-      switch (m_exc_code) {
-      case 0x101:
-        code_desc = "EXC_PPC_VM_PROT_READ";
-        break;
-      case 0x102:
-        code_desc = "EXC_PPC_BADSPACE";
-        break;
-      case 0x103:
-        code_desc = "EXC_PPC_UNALIGNED";
-        break;
-      }
-      break;
-
     default:
       break;
     }
@@ -107,30 +92,6 @@ const char *StopInfoMachException::GetDe
         code_desc = "EXC_I386_INVOP";
       break;
 
-    case llvm::Triple::ppc:
-    case llvm::Triple::ppc64:
-      switch (m_exc_code) {
-      case 1:
-        code_desc = "EXC_PPC_INVALID_SYSCALL";
-        break;
-      case 2:
-        code_desc = "EXC_PPC_UNIPL_INST";
-        break;
-      case 3:
-        code_desc = "EXC_PPC_PRIVINST";
-        break;
-      case 4:
-        code_desc = "EXC_PPC_PRIVREG";
-        break;
-      case 5:
-        code_desc = "EXC_PPC_TRACE";
-        break;
-      case 6:
-        code_desc = "EXC_PPC_PERFMON";
-        break;
-      }
-      break;
-
     case llvm::Triple::arm:
     case llvm::Triple::thumb:
       if (m_exc_code == 1)
@@ -175,33 +136,6 @@ const char *StopInfoMachException::GetDe
       }
       break;
 
-    case llvm::Triple::ppc:
-    case llvm::Triple::ppc64:
-      switch (m_exc_code) {
-      case 1:
-        code_desc = "EXC_PPC_OVERFLOW";
-        break;
-      case 2:
-        code_desc = "EXC_PPC_ZERO_DIVIDE";
-        break;
-      case 3:
-        code_desc = "EXC_PPC_FLT_INEXACT";
-        break;
-      case 4:
-        code_desc = "EXC_PPC_FLT_ZERO_DIVIDE";
-        break;
-      case 5:
-        code_desc = "EXC_PPC_FLT_UNDERFLOW";
-        break;
-      case 6:
-        code_desc = "EXC_PPC_FLT_OVERFLOW";
-        break;
-      case 7:
-        code_desc = "EXC_PPC_FLT_NOT_A_NUMBER";
-        break;
-      }
-      break;
-
     default:
       break;
     }
@@ -235,15 +169,6 @@ const char *StopInfoMachException::GetDe
       }
       break;
 
-    case llvm::Triple::ppc:
-    case llvm::Triple::ppc64:
-      switch (m_exc_code) {
-      case 1:
-        code_desc = "EXC_PPC_BREAKPOINT";
-        break;
-      }
-      break;
-
     case llvm::Triple::arm:
     case llvm::Triple::thumb:
       switch (m_exc_code) {
@@ -384,30 +309,7 @@ StopInfoSP StopInfoMachException::Create
 
   switch (exc_type) {
   case 1: // EXC_BAD_ACCESS
-    break;
-
   case 2: // EXC_BAD_INSTRUCTION
-    switch (cpu) {
-    case llvm::Triple::ppc:
-    case llvm::Triple::ppc64:
-      switch (exc_code) {
-      case 1: // EXC_PPC_INVALID_SYSCALL
-      case 2: // EXC_PPC_UNIPL_INST
-      case 3: // EXC_PPC_PRIVINST
-      case 4: // EXC_PPC_PRIVREG
-        break;
-      case 5: // EXC_PPC_TRACE
-        return StopInfo::CreateStopReasonToTrace(thread);
-      case 6: // EXC_PPC_PERFMON
-        break;
-      }
-      break;
-
-    default:
-      break;
-    }
-    break;
-
   case 3: // EXC_ARITHMETIC
   case 4: // EXC_EMULATION
     break;
@@ -478,11 +380,6 @@ StopInfoSP StopInfoMachException::Create
       }
       break;
 
-    case llvm::Triple::ppc:
-    case llvm::Triple::ppc64:
-      is_actual_breakpoint = exc_code == 1; // EXC_PPC_BREAKPOINT
-      break;
-
     case llvm::Triple::arm:
     case llvm::Triple::thumb:
       if (exc_code == 0x102) // EXC_ARM_DA_DEBUG




More information about the lldb-commits mailing list