diff options
author | oltolm <oleg.tolmatcev@gmail.com> | 2024-09-02 12:13:22 +0200 |
---|---|---|
committer | Tom Tromey <tromey@adacore.com> | 2024-09-13 14:19:34 -0600 |
commit | 1136616707c1ffa5f8a1f4c6fe7b3f60f094adf6 (patch) | |
tree | ac897e2ea5abcaa6e6f73f56b55cc892fa3ea288 /gdb/python | |
parent | 246119630a8a6c487567758ce083645624d09909 (diff) | |
download | binutils-1136616707c1ffa5f8a1f4c6fe7b3f60f094adf6.zip binutils-1136616707c1ffa5f8a1f4c6fe7b3f60f094adf6.tar.gz binutils-1136616707c1ffa5f8a1f4c6fe7b3f60f094adf6.tar.bz2 |
gdb dap: introduce stopOnEntry option
Approved-By: Tom Tromey <tom@tromey.com>
Reviewed-By: Eli Zaretskii <eliz@gnu.org>
Diffstat (limited to 'gdb/python')
-rw-r--r-- | gdb/python/lib/gdb/dap/launch.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gdb/python/lib/gdb/dap/launch.py b/gdb/python/lib/gdb/dap/launch.py index df1f667..65444bf 100644 --- a/gdb/python/lib/gdb/dap/launch.py +++ b/gdb/python/lib/gdb/dap/launch.py @@ -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") |