diff options
author | oltolm <oleg.tolmatcev@gmail.com> | 2025-06-14 22:28:05 +0200 |
---|---|---|
committer | Tom Tromey <tromey@adacore.com> | 2025-06-17 11:11:18 -0600 |
commit | de0590c561a82a77286526652dcb52ba54c25ecc (patch) | |
tree | 9e8e4f2049a010d2cfeb7bd9a7881c4328ea7fee /gdb | |
parent | fc616d4278f83834de2edc681174d36dbbe24ac4 (diff) | |
download | gdb-de0590c561a82a77286526652dcb52ba54c25ecc.zip gdb-de0590c561a82a77286526652dcb52ba54c25ecc.tar.gz gdb-de0590c561a82a77286526652dcb52ba54c25ecc.tar.bz2 |
gdb/dap: allow more requests when the process is running
Makes it possible to set and remove other types of breakpoints while the
process is running. Makes debugging more convenient.
Approved-By: Tom Tromey <tom@tromey.com>
Diffstat (limited to 'gdb')
-rw-r--r-- | gdb/python/lib/gdb/dap/breakpoint.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gdb/python/lib/gdb/dap/breakpoint.py b/gdb/python/lib/gdb/dap/breakpoint.py index 59da120..4d4ca18 100644 --- a/gdb/python/lib/gdb/dap/breakpoint.py +++ b/gdb/python/lib/gdb/dap/breakpoint.py @@ -326,7 +326,7 @@ def _rewrite_fn_breakpoint( } -@request("setFunctionBreakpoints") +@request("setFunctionBreakpoints", expect_stopped=False) @capability("supportsFunctionBreakpoints") def set_fn_breakpoint(*, breakpoints: Sequence, **args): specs = [_rewrite_fn_breakpoint(**bp) for bp in breakpoints] @@ -359,7 +359,7 @@ def _rewrite_insn_breakpoint( } -@request("setInstructionBreakpoints") +@request("setInstructionBreakpoints", expect_stopped=False) @capability("supportsInstructionBreakpoints") def set_insn_breakpoints( *, breakpoints: Sequence, offset: Optional[int] = None, **args @@ -410,7 +410,7 @@ def _rewrite_exception_breakpoint( } -@request("setExceptionBreakpoints") +@request("setExceptionBreakpoints", expect_stopped=False) @capability("supportsExceptionFilterOptions") @capability( "exceptionBreakpointFilters", |