Author: tfiala Date: Wed Aug 27 11:32:02 2014 New Revision: 216559 URL: http://llvm.org/viewvc/llvm-project?rev=216559&view=rev Log: lldb Missing ARM64 breakpoint opcode for ProcessPOSIX added.
See http://reviews.llvm.org/D5078. Change by Paul Osmialowski. Modified: lldb/trunk/source/Plugins/Process/POSIX/ProcessPOSIX.cpp Modified: lldb/trunk/source/Plugins/Process/POSIX/ProcessPOSIX.cpp URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Plugins/Process/POSIX/ProcessPOSIX.cpp?rev=216559&r1=216558&r2=216559&view=diff ============================================================================== --- lldb/trunk/source/Plugins/Process/POSIX/ProcessPOSIX.cpp (original) +++ lldb/trunk/source/Plugins/Process/POSIX/ProcessPOSIX.cpp Wed Aug 27 11:32:02 2014 @@ -642,6 +642,7 @@ ProcessPOSIX::DoDeallocateMemory(lldb::a 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::GetSoftwareBreakpointTrapO 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; _______________________________________________ lldb-commits mailing list [email protected] http://lists.cs.uiuc.edu/mailman/listinfo/lldb-commits
