[Lldb-commits] [lldb] [lldb] Realpath symlinks for breakpoints (PR #102223)
via lldb-commits
lldb-commits at lists.llvm.org
Wed Aug 14 09:08:25 PDT 2024
================
@@ -0,0 +1,158 @@
+"""
+Test lldb breakpoint with symlinks/realpath and source-map.
+"""
+
+import lldb
+from lldbsuite.test.decorators import *
+from lldbsuite.test.lldbtest import *
+from lldbsuite.test import lldbutil, lldbplatformutil
+
+
+class BreakpointTestCase(TestBase):
+ NO_DEBUG_INFO_TESTCASE = True
+
+ def setUp(self):
+ # Call super's setUp().
+ TestBase.setUp(self)
+ # Find the line number to break inside main().
+ self.line_in_main = line_number("main.c", "// Set break point at this line.")
+ self.line_in_foo = line_number("real/foo.h", "// Set break point at this line.")
+ self.line_in_bar = line_number("real/bar.h", "// Set break point at this line.")
+ self.line_in_qux = line_number("real/qux.h", "// Set break point at this line.")
+ # disable "There is a running process, kill it and restart?" prompt
+ self.runCmd("settings set auto-confirm true")
+ self.addTearDownHook(lambda: self.runCmd("settings clear auto-confirm"))
+
+ def buildAndCreateTarget(self):
+ self.build()
+ exe = self.getBuildArtifact("a.out")
+
+ # Create a target by the debugger.
+ target = self.dbg.CreateTarget(exe)
+ self.assertTrue(target, VALID_TARGET)
+
+ @skipIf(oslist=["windows"])
----------------
royitaqi wrote:
And also this?
https://github.com/llvm/llvm-project/pull/102223
More information about the lldb-commits
mailing list