[Lldb-commits] [lldb] r237315 - Add mips64el trap opcode to PlatformFreeBSD as well

Ed Maste emaste at freebsd.org
Wed May 13 16:12:51 PDT 2015


Author: emaste
Date: Wed May 13 18:12:51 2015
New Revision: 237315

URL: http://llvm.org/viewvc/llvm-project?rev=237315&view=rev
Log:
Add mips64el trap opcode to PlatformFreeBSD as well

Modified:
    lldb/trunk/source/Plugins/Platform/FreeBSD/PlatformFreeBSD.cpp

Modified: lldb/trunk/source/Plugins/Platform/FreeBSD/PlatformFreeBSD.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Plugins/Platform/FreeBSD/PlatformFreeBSD.cpp?rev=237315&r1=237314&r2=237315&view=diff
==============================================================================
--- lldb/trunk/source/Plugins/Platform/FreeBSD/PlatformFreeBSD.cpp (original)
+++ lldb/trunk/source/Plugins/Platform/FreeBSD/PlatformFreeBSD.cpp Wed May 13 18:12:51 2015
@@ -612,6 +612,13 @@ PlatformFreeBSD::GetSoftwareBreakpointTr
             trap_opcode_size = sizeof(g_hex_opcode);
         }
         break;
+    case llvm::Triple::mips64el:
+        {
+            static const uint8_t g_hex_opcode[] = { 0x0d, 0x00, 0x00, 0x00 };
+            trap_opcode = g_hex_opcode;
+            trap_opcode_size = sizeof(g_hex_opcode);
+        }
+        break;
     case llvm::Triple::ppc:
     case llvm::Triple::ppc64:
         {





More information about the lldb-commits mailing list