GDBserver: Discard previous queued events when GDB disconnects.
authorPedro Alves <palves@redhat.com>
Wed, 8 Jan 2014 19:16:54 +0000 (19:16 +0000)
committerPedro Alves <palves@redhat.com>
Wed, 8 Jan 2014 20:34:26 +0000 (20:34 +0000)
commit9939e1314f970c6ba568956148a518ac710a280a
treec0a1192c5f661b7dceac5a52d643f39f93187eba
parentb7ea362b023feba8d75d5831948bc0d8496b4069
GDBserver: Discard previous queued events when GDB disconnects.

... not when a new GDB connection sends the status packet ('?').
Mainly just a cleanup/simplification, as GDB always sends '?' first.

Tested on x86_64 Fedora 17.

2014-01-08  Pedro Alves  <palves@redhat.com>

* server.c (handle_status): Don't discard previous queued stop
replies or thread's pending status here.
(main) <disconnection>: Do it here instead.
gdb/gdbserver/ChangeLog
gdb/gdbserver/server.c