[Lldb-commits] [lldb] [lldb][LoongArch64] Add support for LoongArch64 in elf-core for lldb (PR #112296)
Lu Weining via lldb-commits
lldb-commits at lists.llvm.org
Thu Oct 17 02:26:32 PDT 2024
================
@@ -833,6 +845,107 @@ def test_riscv64_regs_gpr_only(self):
substrs=["registers were unavailable"],
)
+ @skipIfLLVMTargetMissing("LoongArch")
+ def test_loongarch64_regs(self):
+ # check registers using 64 bit LoongArch64 core file containing GP-registers only
+ target = self.dbg.CreateTarget(None)
+ self.assertTrue(target, VALID_TARGET)
+ process = target.LoadCore("linux-loongarch64.core")
+
+ values = {}
+ values["r0"] = "0x0"
+ values["r1"] = "0x000000012000016c"
+ values["r2"] = "0x0"
+ values["r3"] = "0x00007ffffb8249e0"
+ values["r4"] = "0x0"
+ values["r5"] = "0x000000012000010c"
+ values["r6"] = "0x0"
+ values["r7"] = "0x0"
+ values["r8"] = "0x0"
+ values["r9"] = "0x0"
+ values["r10"] = "0x0"
+ values["r11"] = "0x00000000000000dd"
+ values["r12"] = "0x0"
+ values["r13"] = "0x000000000000002f"
+ values["r14"] = "0x0"
----------------
SixWeining wrote:
Should we use full encoding (i.e. 8bytes)?
https://github.com/llvm/llvm-project/pull/112296
More information about the lldb-commits
mailing list