[Bug dap/34457] Process output is reported after process termination

tromey at sourceware dot org via Gdb-prs <[email protected]> Tue, 28 Jul 2026 17:39:06 +0000
Newsgroups gmane.comp.gdb.bugs.discuss
Message-ID <[email protected]/bugzilla/>
https://sourceware.org/bugzilla/show_bug.cgi?id=3D34457

Tom Tromey <tromey at sourceware dot org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |tromey at sourceware dot o=
rg
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2026-07-28
     Ever confirmed|0                           |1

--- Comment #3 from Tom Tromey <tromey at sourceware dot org> ---
I can see why this isn't desirable but it's also not completely
unexpected to me.  The gdb DAP code doesn't try to synchronize
these things (the inferior exit and draining the pipe from the inferior).

Right now reading from the inferior is done in a separate thread.
So, it's a bit awkward to try to do one last read before reporting
the exit.  Also I suppose we'd have to try a non-blocking read to=20
make this work.

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