summaryrefslogtreecommitdiff
path: root/lldb/unittests
diff options
context:
space:
mode:
authorIlya Kuklin <ikuklin@accesssoftek.com>2023-04-17 15:26:48 -0700
committerAnton Korobeynikov <anton@korobeynikov.info>2023-04-17 16:03:35 -0700
commit81beb15d7e54b16f4beba0bafd982d56c6b95222 (patch)
treebbbe5a64fbd223942c2a3fd78594b97d7902cce4 /lldb/unittests
parent110cf873add8ae7c34c184d56f7b097683bb4007 (diff)
downloadllvm-81beb15d7e54b16f4beba0bafd982d56c6b95222.tar.gz
[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/unittests')
-rw-r--r--lldb/unittests/Utility/ArchSpecTest.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/lldb/unittests/Utility/ArchSpecTest.cpp b/lldb/unittests/Utility/ArchSpecTest.cpp
index 43cec1f735cc..de3590b73bba 100644
--- a/lldb/unittests/Utility/ArchSpecTest.cpp
+++ b/lldb/unittests/Utility/ArchSpecTest.cpp
@@ -123,6 +123,12 @@ TEST(ArchSpecTest, TestSetTriple) {
EXPECT_STREQ("i686", AS.GetArchitectureName());
EXPECT_EQ(ArchSpec::eCore_x86_32_i686, AS.GetCore());
+ AS = ArchSpec();
+ EXPECT_TRUE(AS.SetTriple("msp430---elf"));
+ EXPECT_EQ(llvm::Triple::msp430, AS.GetTriple().getArch());
+ EXPECT_STREQ("msp430", AS.GetArchitectureName());
+ EXPECT_EQ(ArchSpec::eCore_msp430, AS.GetCore());
+
// Various flavors of invalid triples.
AS = ArchSpec();
EXPECT_FALSE(AS.SetTriple("unknown-unknown-unknown"));