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:
Todd Fiala 2014-08-27 16:32:02 +00:00
parent ed8ecc8429
commit 1d6082ff17
1 changed files with 6 additions and 0 deletions

View File

@ -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;