[Lldb-commits] [lldb] [lldb] Declare return type of lldbutil.run_to_source_breakpoint (PR #190028)
via lldb-commits
lldb-commits at lists.llvm.org
Wed Apr 1 12:53:11 PDT 2026
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-lldb
Author: Dave Lee (kastiglione)
<details>
<summary>Changes</summary>
Helpful for remembering the four return values and their order.
---
Full diff: https://github.com/llvm/llvm-project/pull/190028.diff
1 Files Affected:
- (modified) lldb/packages/Python/lldbsuite/test/lldbutil.py (+5-5)
``````````diff
diff --git a/lldb/packages/Python/lldbsuite/test/lldbutil.py b/lldb/packages/Python/lldbsuite/test/lldbutil.py
index 7f7cdde561702..3458db3665323 100644
--- a/lldb/packages/Python/lldbsuite/test/lldbutil.py
+++ b/lldb/packages/Python/lldbsuite/test/lldbutil.py
@@ -12,7 +12,7 @@
import re
import sys
import subprocess
-from typing import Dict
+from typing import Dict, Tuple
# LLDB modules
import lldb
@@ -901,7 +901,7 @@ def run_to_breakpoint_make_target(test, exe_name="a.out", in_cwd=True):
def run_to_breakpoint_do_run(
test, target, bkpt, launch_info=None, only_one_thread=True, extra_images=None
-):
+) -> Tuple[lldb.SBTarget, lldb.SBProcess, lldb.SBThread, lldb.SBBreakpoint]:
# Launch the process, and do not stop at the entry point.
if not launch_info:
launch_info = target.GetLaunchInfo()
@@ -984,7 +984,7 @@ def run_to_name_breakpoint(
in_cwd=True,
only_one_thread=True,
extra_images=None,
-):
+) -> Tuple[lldb.SBTarget, lldb.SBProcess, lldb.SBThread, lldb.SBBreakpoint]:
"""Start up a target, using exe_name as the executable, and run it to
a breakpoint set by name on bkpt_name restricted to bkpt_module.
@@ -1037,7 +1037,7 @@ def run_to_source_breakpoint(
only_one_thread=True,
extra_images=None,
has_locations_before_run=True,
-):
+) -> Tuple[lldb.SBTarget, lldb.SBProcess, lldb.SBThread, lldb.SBBreakpoint]:
"""Start up a target, using exe_name as the executable, and run it to
a breakpoint set by source regex bkpt_pattern.
@@ -1071,7 +1071,7 @@ def run_to_line_breakpoint(
in_cwd=True,
only_one_thread=True,
extra_images=None,
-):
+) -> Tuple[lldb.SBTarget, lldb.SBProcess, lldb.SBThread, lldb.SBBreakpoint]:
"""Start up a target, using exe_name as the executable, and run it to
a breakpoint set by (source_spec, line_number(, column)).
``````````
</details>
https://github.com/llvm/llvm-project/pull/190028
More information about the lldb-commits
mailing list