diff options
author | Ilya Kuklin <ikuklin@accesssoftek.com> | 2023-04-17 15:26:48 -0700 |
---|---|---|
committer | Anton Korobeynikov <anton@korobeynikov.info> | 2023-04-17 16:03:35 -0700 |
commit | 81beb15d7e54b16f4beba0bafd982d56c6b95222 (patch) | |
tree | bbbe5a64fbd223942c2a3fd78594b97d7902cce4 /lldb/source/Host/common/NativeProcessProtocol.cpp | |
parent | 110cf873add8ae7c34c184d56f7b097683bb4007 (diff) | |
download | llvm-81beb15d7e54b16f4beba0bafd982d56c6b95222.zip llvm-81beb15d7e54b16f4beba0bafd982d56c6b95222.tar.gz llvm-81beb15d7e54b16f4beba0bafd982d56c6b95222.tar.bz2 |
[lldb] Add support for MSP430 in LLDB.
Add MSP430 to the list of available targets, implement MSP430 ABI, add support for debugging targets with 16-bit address size.
The update is intended for use with MSPDebug, a GDB server implementation for MSP430.
Reviewed By: bulbazord, DavidSpickett
Differential Revision: https://reviews.llvm.org/D146965
Diffstat (limited to 'lldb/source/Host/common/NativeProcessProtocol.cpp')
-rw-r--r-- | lldb/source/Host/common/NativeProcessProtocol.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lldb/source/Host/common/NativeProcessProtocol.cpp b/lldb/source/Host/common/NativeProcessProtocol.cpp index 95258e1..b3ef8f0 100644 --- a/lldb/source/Host/common/NativeProcessProtocol.cpp +++ b/lldb/source/Host/common/NativeProcessProtocol.cpp @@ -503,6 +503,7 @@ NativeProcessProtocol::GetSoftwareBreakpointTrapOpcode(size_t size_hint) { 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}; + static const uint8_t g_msp430_opcode[] = {0x43, 0x43}; static const uint8_t g_s390x_opcode[] = {0x00, 0x01}; static const uint8_t g_ppc_opcode[] = {0x7f, 0xe0, 0x00, 0x08}; // trap static const uint8_t g_ppcle_opcode[] = {0x08, 0x00, 0xe0, 0x7f}; // trap @@ -528,6 +529,9 @@ NativeProcessProtocol::GetSoftwareBreakpointTrapOpcode(size_t size_hint) { case llvm::Triple::mips64el: return llvm::ArrayRef(g_mips64el_opcode); + case llvm::Triple::msp430: + return llvm::ArrayRef(g_msp430_opcode); + case llvm::Triple::systemz: return llvm::ArrayRef(g_s390x_opcode); |