gdb dap: introduce stopOnEntry option

Approved-By: Tom Tromey <tom@tromey.com>
Reviewed-By: Eli Zaretskii <eliz@gnu.org>
This commit is contained in:
oltolm
2024-09-02 12:13:22 +02:00
committed by Tom Tromey
parent 246119630a
commit 1136616707
2 changed files with 7 additions and 1 deletions

View File

@@ -45,6 +45,7 @@ def launch(
args: Sequence[str] = (),
env: Optional[Mapping[str, str]] = None,
stopAtBeginningOfMainSubprogram: bool = False,
stopOnEntry: bool = False,
**extra,
):
if cwd is not None:
@@ -62,7 +63,7 @@ def launch(
for name, value in env.items():
inf.set_env(name, value)
expect_process("process")
exec_and_expect_stop("run")
exec_and_expect_stop("starti" if stopOnEntry else "run")
@request("attach")