summaryrefslogtreecommitdiffstats
path: root/lldb/source/Plugins/Process/Linux
diff options
context:
space:
mode:
authorMohit K. Bhakkad <mohit.bhakkad@gmail.com>2015-04-23 06:36:20 +0000
committerMohit K. Bhakkad <mohit.bhakkad@gmail.com>2015-04-23 06:36:20 +0000
commite8659b5df619b0915ed6d71fe544d8514a11334a (patch)
tree1dd7f16c53f4b75196ea6a8e9f250033dd2425a0 /lldb/source/Plugins/Process/Linux
parent5e018f9e29a2b7e67e82dfa17f32662f18a9bdf7 (diff)
downloadbcm5719-llvm-e8659b5df619b0915ed6d71fe544d8514a11334a.tar.gz
bcm5719-llvm-e8659b5df619b0915ed6d71fe544d8514a11334a.zip
[LLDB][MIPS] Add MIPS32 and MIPS64 core revisions
Patch by Jaydeep Patil Added MIPS32 and MIPS64 core revisions. This would be followed by register context and emulate-instruction for MIPS32. DYLDRendezvous.cpp: On Linux link map struct does not contain extra load offset field. Reviewers: clayborg Subscribers: bhushan, mohit.bhakkad, sagar, lldb-commits. Differential Revision: http://reviews.llvm.org/D9190 llvm-svn: 235574
Diffstat (limited to 'lldb/source/Plugins/Process/Linux')
-rw-r--r--lldb/source/Plugins/Process/Linux/NativeProcessLinux.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/lldb/source/Plugins/Process/Linux/NativeProcessLinux.cpp b/lldb/source/Plugins/Process/Linux/NativeProcessLinux.cpp
index e9014e08f32..205faf0f8f5 100644
--- a/lldb/source/Plugins/Process/Linux/NativeProcessLinux.cpp
+++ b/lldb/source/Plugins/Process/Linux/NativeProcessLinux.cpp
@@ -3559,6 +3559,7 @@ NativeProcessLinux::GetSoftwareBreakpointPCOffset (NativeRegisterContextSP conte
// set per architecture. Need ARM, MIPS support here.
static const uint8_t g_aarch64_opcode[] = { 0x00, 0x00, 0x20, 0xd4 };
static const uint8_t g_i386_opcode [] = { 0xCC };
+ static const uint8_t g_mips64_opcode[] = { 0x00, 0x00, 0x00, 0x0d };
switch (m_arch.GetMachine ())
{
@@ -3575,6 +3576,11 @@ NativeProcessLinux::GetSoftwareBreakpointPCOffset (NativeRegisterContextSP conte
actual_opcode_size = static_cast<uint32_t> (sizeof(g_i386_opcode));
return Error ();
+ case llvm::Triple::mips64:
+ case llvm::Triple::mips64el:
+ actual_opcode_size = static_cast<uint32_t> (sizeof(g_mips64_opcode));
+ return Error ();
+
default:
assert(false && "CPU type not supported!");
return Error ("CPU type not supported");
OpenPOWER on IntegriCloud