]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
Make gdb/linux-nat.c consider a waitstatus pending on the infrun side
authorPedro Alves <palves@redhat.com>
Wed, 25 May 2016 17:35:09 +0000 (18:35 +0100)
committerPedro Alves <palves@redhat.com>
Wed, 25 May 2016 17:35:09 +0000 (18:35 +0100)
commita0de87e7be6a58dfeb9bfb00172dbd975dabb72e
tree4430d6254631a314432927aa2215ead45cacd9e4
parent92e1921256be5093311c6b616e12060c6e1dcf28
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-25  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