[Lldb-commits] [lldb] [lldb][RISCV] fix LR/SC atomic sequence handling in lldb-server (PR #127505)
David Spickett via lldb-commits
lldb-commits at lists.llvm.org
Fri Jun 20 08:09:33 PDT 2025
================
@@ -0,0 +1,90 @@
+"""
+Test software step-inst
+"""
+
+import lldb
+from lldbsuite.test.decorators import *
+from lldbsuite.test.lldbtest import *
+from lldbsuite.test import lldbutil
+
+
+class TestSoftwareStep(TestBase):
+ @skipIf(archs=no_match(re.compile("rv*")))
+ def test_cas(self):
+ self.build()
+ (target, process, cur_thread, bkpt) = lldbutil.run_to_name_breakpoint(
+ self, "cas"
+ )
+ entry_pc = cur_thread.GetFrameAtIndex(0).GetPC()
+
+ self.runCmd("thread step-inst")
+ self.expect(
+ "thread list",
+ substrs=["stopped", "stop reason = instruction step into"],
+ )
+
+ pc = cur_thread.GetFrameAtIndex(0).GetPC()
+ self.assertTrue((pc - entry_pc) > 0x10)
----------------
DavidSpickett wrote:
Either find a way to disable DWO testing here (I think we have one but can't recall it), or open an issue for the split dwarf difference and reference that when you do the inexact check.
Doesn't sound like this inexact check is going to let obvious failures through anyway.
https://github.com/llvm/llvm-project/pull/127505
More information about the lldb-commits
mailing list