summaryrefslogtreecommitdiff
path: root/lldb/unittests
diff options
context:
space:
mode:
authorAnton Korobeynikov <anton@korobeynikov.info>2023-04-17 10:56:01 -0700
committerAnton Korobeynikov <anton@korobeynikov.info>2023-04-17 11:05:09 -0700
commit82c02b733c7736507a41a26bebd37d3f8e88bd4e (patch)
treea3b64832b82fbb0fdf2753ce8d79d24ee8288a1e /lldb/unittests
parent09b462ef8539433f56d1a6d2cc807db9a56072e6 (diff)
downloadllvm-82c02b733c7736507a41a26bebd37d3f8e88bd4e.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"));