]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
gdb/dap: allow more requests when the process is running
authoroltolm <oleg.tolmatcev@gmail.com>
Sat, 14 Jun 2025 20:28:05 +0000 (22:28 +0200)
committerTom Tromey <tromey@adacore.com>
Tue, 17 Jun 2025 17:11:18 +0000 (11:11 -0600)
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>
gdb/python/lib/gdb/dap/breakpoint.py

index 59da120306785416d50d5692b51dd513ef5cc99e..4d4ca181e048ec567183435f5a3c5a54c00c927b 100644 (file)
@@ -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",