[Lldb-commits] [lldb] [lldb] Add utility to create Mach-O corefile from YAML desc (PR #153911)
David Spickett via lldb-commits
lldb-commits at lists.llvm.org
Mon Sep 1 06:03:05 PDT 2025
================
@@ -13,18 +13,17 @@
class TestRV32MachOCorefile(TestBase):
NO_DEBUG_INFO_TESTCASE = True
- @skipUnlessDarwin
+ @no_debug_info_test
def test_riscv32_gpr_corefile_registers(self):
- self.build()
- create_corefile = self.getBuildArtifact("create-empty-riscv-corefile")
corefile = self.getBuildArtifact("core")
- call(create_corefile + " " + corefile, shell=True)
+ self.yaml2macho_core("riscv32-registers.yaml", corefile)
+ # call(create_corefile + " " + corefile, shell=True)
target = self.dbg.CreateTarget("")
process = target.LoadCore(corefile)
process = target.GetProcess()
- self.assertEqual(process.GetNumThreads(), 1)
+ self.assertEqual(process.GetNumThreads(), 2)
----------------
DavidSpickett wrote:
Why did we grow another thread? Just a good excuse to test that you could describe more than one?
Seems fine just wondering.
https://github.com/llvm/llvm-project/pull/153911
More information about the lldb-commits
mailing list