mirror of
https://github.com/intel/llvm.git
synced 2026-01-18 16:50:51 +08:00
Add the Hexagon DSP breakpoint opcode to PlatformWindows and PlatformLinux
llvm-svn: 213567
This commit is contained in:
@@ -401,7 +401,12 @@ PlatformLinux::GetSoftwareBreakpointTrapOpcode (Target &target,
|
||||
}
|
||||
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))
|
||||
|
||||
@@ -291,7 +291,12 @@ PlatformWindows::GetSoftwareBreakpointTrapOpcode (Target &target, BreakpointSite
|
||||
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;
|
||||
|
||||
Reference in New Issue
Block a user