[gdbserver/win32]: Ignore OUTPUT_DEBUG_STRING_EVENT events when remote is not connected.

Pedro Alves pedro_alves@portugalmail.pt
Sun Jul 8 01:22:00 GMT 2007


Hi,

OUTPUT_DEBUG_STRING_EVENT events can happen from after the inferior
is created, until it is stopped at the initial breakpoint, waiting
for gdb.  The OUTPUT_DEBUG_STRING_EVENT handler doesn't currently
check if a remote connection is open before sending data, generating
annoying putpkt error logs to gdbserver's console.  This
patch fixes it by simply ignoring those events when there isn't any
gdb connected yet.  I didn't use server_wait, because this event
is also handled in win32_kill, outside of a wait.

Cheers,
Pedro Alves

-------------- next part --------------
A non-text attachment was scrubbed...
Name: outputdebugstring_not_connected.diff
Type: text/x-diff
Size: 1838 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/gdb-patches/attachments/20070708/0917dc15/attachment.bin>


More information about the Gdb-patches mailing list