linux-nat: introduce pending_status_str
authorPedro Alves <pedro@palves.net>
Fri, 12 Nov 2021 20:50:29 +0000 (20:50 +0000)
committerPedro Alves <pedro@palves.net>
Mon, 27 Mar 2023 18:02:04 +0000 (19:02 +0100)
commit57573e54afb9f7ed957eec43dfd2830f2384c970
tree86ed9f239c76c3a714a5bac49bb2315263eed856
parent58c010877e77ad9dd4e14272f9500d40b75e7429
linux-nat: introduce pending_status_str

I noticed that some debug log output printing an lwp's pending status
wasn't considering lp->waitstatus.  This fixes it, by introducing a
new pending_status_str function.

Also fix the comment in gdb/linux-nat.h describing
lwp_info::waitstatus and details the description of lwp_info::status
while at it.

Change-Id: I66e5c7a363d30a925b093b195d72925ce5b6b980
Approved-By: Andrew Burgess <aburgess@redhat.com>
gdb/linux-nat.c
gdb/linux-nat.h