Author: mohit.bhakkad Date: Thu Jan 8 03:46:29 2015 New Revision: 225436 URL: http://llvm.org/viewvc/llvm-project?rev=225436&view=rev Log: [LLDB][MIPS] Adding SoftwareBreakpointTrapOpcode and RelocationJumpSlotType for MIPS
Patch by Bhushan Attarde Reviewers: clayborg Reviewed By: clayborg Subscribers: petarj, dsanders, mohit.bhakkad, lldb-commits Differential Revision: http://reviews.llvm.org/D6861 Modified: lldb/trunk/source/Plugins/ObjectFile/ELF/ELFHeader.cpp lldb/trunk/source/Plugins/Platform/Linux/PlatformLinux.cpp Modified: lldb/trunk/source/Plugins/ObjectFile/ELF/ELFHeader.cpp URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Plugins/ObjectFile/ELF/ELFHeader.cpp?rev=225436&r1=225435&r2=225436&view=diff ============================================================================== --- lldb/trunk/source/Plugins/ObjectFile/ELF/ELFHeader.cpp (original) +++ lldb/trunk/source/Plugins/ObjectFile/ELF/ELFHeader.cpp Thu Jan 8 03:46:29 2015 @@ -195,6 +195,9 @@ ELFHeader::GetRelocationJumpSlotType() c case EM_AARCH64: slot = R_AARCH64_JUMP_SLOT; break; + case EM_MIPS: + slot = R_MIPS_JUMP_SLOT; + break; } return slot; 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=225436&r1=225435&r2=225436&view=diff ============================================================================== --- lldb/trunk/source/Plugins/Platform/Linux/PlatformLinux.cpp (original) +++ lldb/trunk/source/Plugins/Platform/Linux/PlatformLinux.cpp Thu Jan 8 03:46:29 2015 @@ -583,6 +583,13 @@ PlatformLinux::GetSoftwareBreakpointTrap } } break; + case llvm::Triple::mips64: + { + static const uint8_t g_hex_opcode[] = { 0x00, 0x00, 0x00, 0x0d }; + trap_opcode = g_hex_opcode; + trap_opcode_size = sizeof(g_hex_opcode); + } + break; } if (bp_site->SetTrapOpcode(trap_opcode, trap_opcode_size)) _______________________________________________ lldb-commits mailing list [email protected] http://lists.cs.uiuc.edu/mailman/listinfo/lldb-commits
