diff options
| author | Mohit K. Bhakkad <mohit.bhakkad@gmail.com> | 2015-04-09 07:12:15 +0000 |
|---|---|---|
| committer | Mohit K. Bhakkad <mohit.bhakkad@gmail.com> | 2015-04-09 07:12:15 +0000 |
| commit | 2c2acf9602d89e1715385fdc0c3f0fb80d063391 (patch) | |
| tree | 867bef4d43a27127bad6629c7fd07bca427fb3bc /lldb/source/Plugins/Process/Linux/NativeProcessLinux.cpp | |
| parent | 0eccfdc6555a264a76175e5a1b3bb0a96b16ab47 (diff) | |
[LLDB][MIPS] Add LinuxSignals for mips64 and change trap opcode for mips64el.
Patch by Sagar Thakur
- Added LinuxSignals for MIPS64.
- Changed software trap opcode for mips64el.
Reviewers: clayborg, tberghammer.
Subscribers: emaste, jaydeep, bhushan, mohit.bhakkad, llvm-commits.
Differential Revision: http://reviews.llvm.org/D8856
llvm-svn: 234469
Diffstat (limited to 'lldb/source/Plugins/Process/Linux/NativeProcessLinux.cpp')
| -rw-r--r-- | lldb/source/Plugins/Process/Linux/NativeProcessLinux.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/lldb/source/Plugins/Process/Linux/NativeProcessLinux.cpp b/lldb/source/Plugins/Process/Linux/NativeProcessLinux.cpp index 6f3aa685e651..5712dc52ad5c 100644 --- a/lldb/source/Plugins/Process/Linux/NativeProcessLinux.cpp +++ b/lldb/source/Plugins/Process/Linux/NativeProcessLinux.cpp @@ -3230,6 +3230,7 @@ NativeProcessLinux::GetSoftwareBreakpointTrapOpcode (size_t trap_opcode_size_hin 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 }; + static const uint8_t g_mips64el_opcode[] = { 0x0d, 0x00, 0x00, 0x00 }; switch (m_arch.GetMachine ()) { @@ -3245,11 +3246,15 @@ NativeProcessLinux::GetSoftwareBreakpointTrapOpcode (size_t trap_opcode_size_hin return Error (); case llvm::Triple::mips64: - case llvm::Triple::mips64el: trap_opcode_bytes = g_mips64_opcode; actual_opcode_size = sizeof(g_mips64_opcode); return Error (); + case llvm::Triple::mips64el: + trap_opcode_bytes = g_mips64el_opcode; + actual_opcode_size = sizeof(g_mips64el_opcode); + return Error (); + default: assert(false && "CPU type not supported!"); return Error ("CPU type not supported"); |
