[Lldb-commits] [lldb] [lldb] Declare return type of lldbutil.run_to_source_breakpoint (PR #190028)
Dave Lee via lldb-commits
lldb-commits at lists.llvm.org
Wed Apr 1 12:52:35 PDT 2026
https://github.com/kastiglione created https://github.com/llvm/llvm-project/pull/190028
Helpful for remembering the four return values and their order.
>From 16a0a05f35699539ba0d2963fa2fa3d0991257a4 Mon Sep 17 00:00:00 2001
From: Dave Lee <davelee.com at gmail.com>
Date: Wed, 1 Apr 2026 12:51:02 -0700
Subject: [PATCH] [lldb] Declare return type of
lldbutil.run_to_source_breakpoint
Helpful for remembering the four return values and their order.
---
lldb/packages/Python/lldbsuite/test/lldbutil.py | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
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)).
More information about the lldb-commits
mailing list