gdbserver/linux: Always wake up event loop after resume
authorPedro Alves <palves@redhat.com>
Mon, 30 Nov 2015 16:05:26 +0000 (16:05 +0000)
committerPedro Alves <palves@redhat.com>
Mon, 30 Nov 2015 18:45:23 +0000 (18:45 +0000)
commit1bebeeca940f4f6339e66eb7fb486c81cd951522
tree47ddd3c86111dd7b0272b0bca92e61ad6555c065
parenta67a9faef0e32886c83611cc7a0ba61e91123063
gdbserver/linux: Always wake up event loop after resume

Running killed-outside.exp in with "maint set target-non-stop on"
hangs currently.  This test has the inferior process die with a
SIGKILL while stopped.  gdbserver gets a SIGCHLD and reacts by
retrieveing the SIGKILL events out of waitpid.  But because the
process is not resumed from GDB's perspective, the event is left
pending.  When GDB resumes the process afterwards, the process is not
really resumed because it already has the event pending.  But nothing
wakes up the event loop to consume the event.

Handle this in the same way nat/linux-nat.c:linux_nat_resume handles
this.

gdb/gdbserver/ChangeLog:
2015-11-30  Pedro Alves  <palves@redhat.com>

* linux-low.c (linux_resume): Wake up the event loop before
returning.
gdb/gdbserver/ChangeLog
gdb/gdbserver/linux-low.c
This page took 0.029293 seconds and 4 git commands to generate.