[Bug dap/34458] No response to the setBreakpoints request when the program is running

tromey at sourceware dot org via Gdb-prs <[email protected]> Wed, 29 Jul 2026 18:01:21 +0000
Newsgroups gmane.comp.gdb.bugs.discuss
Message-ID <[email protected]/bugzilla/>
https://sourceware.org/bugzilla/show_bug.cgi?id=3D34458

--- Comment #6 from Tom Tromey <tromey at sourceware dot org> ---
One oddity I noticed is that the inferior is started with "run"
but continued with "continue &".

So maybe in the "run" case we wouldn't expect setBreakpoints to work?
Or even to be processed?

The current logging only logs commands as they are read -- but to
handle cancellations, this is done in a separate thread.  So maybe
a log with this patch would be interesting, unsure.

diff --git a/gdb/python/lib/gdb/dap/server.py
b/gdb/python/lib/gdb/dap/server.py
index 04b3c4de0de..fe962cb0170 100644
--- a/gdb/python/lib/gdb/dap/server.py
+++ b/gdb/python/lib/gdb/dap/server.py
@@ -312,6 +312,7 @@ class Server:
             "command": params["command"],
         }

+        log("PROCESSING: <<<" + params["command"] + ">>>")
         if "arguments" in params:
             # Since the "arguments" field is optional, setting it to
             # null is an odd thing to do when one could simply omit it

--=20
You are receiving this mail because:
You are on the CC list for the bug.=