[Lldb-commits] [PATCH] Adding SoftwareBreakpointTrapOpcode and RelocationJumpSlotType for MIPS
Mohit Bhakkad
mohit.bhakkad at imgtec.com
Thu Jan 8 01:47:51 PST 2015
REPOSITORY
rL LLVM
http://reviews.llvm.org/D6861
Files:
lldb/trunk/source/Plugins/ObjectFile/ELF/ELFHeader.cpp
lldb/trunk/source/Plugins/Platform/Linux/PlatformLinux.cpp
Index: lldb/trunk/source/Plugins/Platform/Linux/PlatformLinux.cpp
===================================================================
--- lldb/trunk/source/Plugins/Platform/Linux/PlatformLinux.cpp
+++ lldb/trunk/source/Plugins/Platform/Linux/PlatformLinux.cpp
@@ -583,6 +583,13 @@
}
}
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))
Index: lldb/trunk/source/Plugins/ObjectFile/ELF/ELFHeader.cpp
===================================================================
--- lldb/trunk/source/Plugins/ObjectFile/ELF/ELFHeader.cpp
+++ lldb/trunk/source/Plugins/ObjectFile/ELF/ELFHeader.cpp
@@ -195,6 +195,9 @@
case EM_AARCH64:
slot = R_AARCH64_JUMP_SLOT;
break;
+ case EM_MIPS:
+ slot = R_MIPS_JUMP_SLOT;
+ break;
}
return slot;
EMAIL PREFERENCES
http://reviews.llvm.org/settings/panel/emailpreferences/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D6861.17889.patch
Type: text/x-patch
Size: 1079 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20150108/1a9a8d33/attachment.bin>
More information about the lldb-commits
mailing list