mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2025-03-01 13:26:47 +08:00
gdb/gdbserver/
Code cleanup. * linux-low.c (linux_wait_for_event_1): Use ptid_is_pid.
This commit is contained in:
parent
6a52fb620c
commit
e825046fcf
@ -1,3 +1,8 @@
|
||||
2012-01-20 Jan Kratochvil <jan.kratochvil@redhat.com>
|
||||
|
||||
Code cleanup.
|
||||
* linux-low.c (linux_wait_for_event_1): Use ptid_is_pid.
|
||||
|
||||
2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
|
||||
|
||||
* hostio.c (handle_readlink): New function.
|
||||
|
@ -1578,8 +1578,7 @@ linux_wait_for_event_1 (ptid_t ptid, int *wstat, int options)
|
||||
|
||||
/* Check for a lwp with a pending status. */
|
||||
|
||||
if (ptid_equal (ptid, minus_one_ptid)
|
||||
|| ptid_equal (pid_to_ptid (ptid_get_pid (ptid)), ptid))
|
||||
if (ptid_equal (ptid, minus_one_ptid) || ptid_is_pid (ptid))
|
||||
{
|
||||
event_child = (struct lwp_info *)
|
||||
find_inferior (&all_lwps, status_pending_p_callback, &ptid);
|
||||
|
Loading…
Reference in New Issue
Block a user