[Lldb-commits] [lldb] r213567 - Add the Hexagon DSP breakpoint opcode to PlatformWindows and PlatformLinux
Deepak Panickal
deepak at codeplay.com
Mon Jul 21 10:22:12 PDT 2014
Author: panickal
Date: Mon Jul 21 12:22:12 2014
New Revision: 213567
URL: http://llvm.org/viewvc/llvm-project?rev=213567&view=rev
Log:
Add the Hexagon DSP breakpoint opcode to PlatformWindows and PlatformLinux
Modified:
lldb/trunk/source/Plugins/Platform/Linux/PlatformLinux.cpp
lldb/trunk/source/Plugins/Platform/Windows/PlatformWindows.cpp
Modified: lldb/trunk/source/Plugins/Platform/Linux/PlatformLinux.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Plugins/Platform/Linux/PlatformLinux.cpp?rev=213567&r1=213566&r2=213567&view=diff
==============================================================================
--- lldb/trunk/source/Plugins/Platform/Linux/PlatformLinux.cpp (original)
+++ lldb/trunk/source/Plugins/Platform/Linux/PlatformLinux.cpp Mon Jul 21 12:22:12 2014
@@ -401,7 +401,12 @@ PlatformLinux::GetSoftwareBreakpointTrap
}
break;
case llvm::Triple::hexagon:
- return 0;
+ {
+ static const uint8_t g_hex_opcode[] = { 0x0c, 0xdb, 0x00, 0x54 };
+ trap_opcode = g_hex_opcode;
+ trap_opcode_size = sizeof(g_hex_opcode);
+ }
+ break;
}
if (bp_site->SetTrapOpcode(trap_opcode, trap_opcode_size))
Modified: lldb/trunk/source/Plugins/Platform/Windows/PlatformWindows.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Plugins/Platform/Windows/PlatformWindows.cpp?rev=213567&r1=213566&r2=213567&view=diff
==============================================================================
--- lldb/trunk/source/Plugins/Platform/Windows/PlatformWindows.cpp (original)
+++ lldb/trunk/source/Plugins/Platform/Windows/PlatformWindows.cpp Mon Jul 21 12:22:12 2014
@@ -291,7 +291,12 @@ PlatformWindows::GetSoftwareBreakpointTr
break;
case llvm::Triple::hexagon:
- return 0;
+ {
+ static const uint8_t g_hex_opcode[] = { 0x0c, 0xdb, 0x00, 0x54 };
+ trap_opcode = g_hex_opcode;
+ trap_opcode_size = sizeof(g_hex_opcode);
+ }
+ break;
default:
llvm_unreachable("Unhandled architecture in PlatformWindows::GetSoftwareBreakpointTrapOpcode()");
break;
More information about the lldb-commits
mailing list