forked from OSchip/llvm-project
lldb Missing ARM64 breakpoint opcode for ProcessPOSIX added.
See http://reviews.llvm.org/D5078. Change by Paul Osmialowski. llvm-svn: 216559
This commit is contained in:
parent
ed8ecc8429
commit
1d6082ff17
|
|
@ -642,6 +642,7 @@ ProcessPOSIX::DoDeallocateMemory(lldb::addr_t addr)
|
|||
size_t
|
||||
ProcessPOSIX::GetSoftwareBreakpointTrapOpcode(BreakpointSite* bp_site)
|
||||
{
|
||||
static const uint8_t g_aarch64_opcode[] = { 0x00, 0x00, 0x20, 0xD4 };
|
||||
static const uint8_t g_i386_opcode[] = { 0xCC };
|
||||
|
||||
ArchSpec arch = GetTarget().GetArchitecture();
|
||||
|
|
@ -654,6 +655,11 @@ ProcessPOSIX::GetSoftwareBreakpointTrapOpcode(BreakpointSite* bp_site)
|
|||
assert(false && "CPU type not supported!");
|
||||
break;
|
||||
|
||||
case llvm::Triple::aarch64:
|
||||
opcode = g_aarch64_opcode;
|
||||
opcode_size = sizeof(g_aarch64_opcode);
|
||||
break;
|
||||
|
||||
case llvm::Triple::x86:
|
||||
case llvm::Triple::x86_64:
|
||||
opcode = g_i386_opcode;
|
||||
|
|
|
|||
Loading…
Reference in New Issue