infrun: Fix TARGET_WAITKIND_NO_RESUMED handling in non-stop mode
authorPedro Alves <palves@redhat.com>
Mon, 30 Nov 2015 16:05:24 +0000 (16:05 +0000)
committerPedro Alves <palves@redhat.com>
Mon, 30 Nov 2015 18:42:33 +0000 (18:42 +0000)
commitf4836ba964a96364f39c7eab8b8b2f8656d14d05
treefd248467ab884bf3588b2470a41ef9de32aa59c7
parent04bf20c5687b102b9a2c2a915d4c400788296a3b
infrun: Fix TARGET_WAITKIND_NO_RESUMED handling in non-stop mode

Running the testsuite against gdbserver with "maint set target-non-stop on"
stumbled on a set of problems.  See code comments for details.

This handles my concerns expressed in PR14618.

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

PR 14618
* infrun.c (handle_no_resumed): New function.
(handle_inferior_event_1) <TARGET_WAITKIND_NO_RESUMED>: Defer to
handle_no_resumed.
gdb/ChangeLog
gdb/infrun.c