DAP specifies a Process event that should be emitted when starting or attaching. gdb currently does not do this.
See https://github.com/microsoft/debug-adapter-protocol/issues/439 ... requested clarification of the meaning of "system process".
I have a patch to add this, but I wonder when it should be sent. For "attach" it is currently sent after a bunch of other events (new thread, new module). That's probably too late but the spec doesn't really say.
https://sourceware.org/pipermail/gdb-patches/2023-November/204163.html
The master branch has been updated by Tom Tromey <tromey@sourceware.org>: https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=14e461bed44258fb872731a79ca5e82b70781d09 commit 14e461bed44258fb872731a79ca5e82b70781d09 Author: Tom Tromey <tromey@adacore.com> Date: Fri Oct 6 14:30:46 2023 -0600 Emit DAP "process" event DAP specifies a "process" event that is sent when a process is started or attached to. gdb was not emitting this (several DAP clients appear to ignore it entirely), but it looked easy and harmless to implement. Bug: https://sourceware.org/bugzilla/show_bug.cgi?id=30473
Fixed.
The master branch has been updated by Tom Tromey <tromey@sourceware.org>: https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=9a099bc220fbc97e9ccff6a7e1861e11665e8899 commit 9a099bc220fbc97e9ccff6a7e1861e11665e8899 Author: Tom Tromey <tromey@adacore.com> Date: Mon Dec 11 07:50:46 2023 -0700 Add DAP items to NEWS Now that DAP is in GDB 14, significant changes to it should be noted in NEWS. This patch adds a note for a fix that's already gone in. I started a new section in NEWS because more changes are coming. Bug: https://sourceware.org/bugzilla/show_bug.cgi?id=30473 Approved-By: Eli Zaretskii <eliz@gnu.org>