Make gdb/linux-nat.c consider a waitstatus pending on the infrun side
authorPedro Alves <palves@redhat.com>
Tue, 24 May 2016 13:47:57 +0000 (14:47 +0100)
committerPedro Alves <palves@redhat.com>
Tue, 24 May 2016 13:51:03 +0000 (14:51 +0100)
commit72b049d38ce85c51fc9f97ee64b00a47be5ebe94
treef279fd54fbdba1db5d8c22e494d89add43ef51f0
parent774113b02f41ded4d9ba4d18571ee5024312ad1b
Make gdb/linux-nat.c consider a waitstatus pending on the infrun side

Working on the fix for gdb/19828, I saw
gdb.threads/attach-many-short-lived-threads.exp fail once in an
unusual way.  Unfortunately I didn't keep debug logs, but it's an
issue similar to what's been fixed in remote.c a while ago --
linux-nat.c was not fetching the pending status from the right place.

gdb/ChangeLog:
2016-05-24  Pedro Alves  <palves@redhat.com>

PR gdb/19828
* linux-nat.c (get_pending_status): If the thread reported the
event to the core and it's pending, use the pending status signal
number.
gdb/ChangeLog
gdb/linux-nat.c