[Lldb-commits] [lldb] [lldb] Track CFA pointer metadata in StackID (PR #157498)
Felipe de Azevedo Piovezan via lldb-commits
lldb-commits at lists.llvm.org
Wed Sep 10 18:00:33 PDT 2025
================
@@ -0,0 +1,25 @@
+import lldb
+from lldbsuite.test.decorators import *
+from lldbsuite.test.lldbtest import *
+from lldbsuite.test import lldbutil
+
+
+ at skipUnlessDarwin
+ at skipIf(archs=no_match(["arm64"]))
+class TestArmPointerMetadataStripping(TestBase):
+ def test(self):
+ self.build()
+ target, process, thread, bkpt = lldbutil.run_to_name_breakpoint(self, "foo")
+
+ # Step over the first two instructions of foo in order to
+ # toggle the bit of fp and save it on the stack:
+ # orr x29, x29, #0x1000000000000000
+ # stp x29, x30, [sp, #-16]!
+ thread.StepInstruction(False)
+ thread.StepInstruction(False)
+
----------------
felipepiovezan wrote:
I sort of wrote that in the `.S` file comments at the top, but it makes sense to have a version of it in the python driver.
https://github.com/llvm/llvm-project/pull/157498
More information about the lldb-commits
mailing list