diff options
author | Jan Kratochvil <jan.kratochvil@redhat.com> | 2012-01-20 20:02:25 +0000 |
---|---|---|
committer | Jan Kratochvil <jan.kratochvil@redhat.com> | 2012-01-20 20:02:25 +0000 |
commit | e825046fcf0193aad44b1f3d1a8514190278b85d (patch) | |
tree | 58ecd320903be110ea2f0c20c3e0dd210fda68cd /gdb/gdbserver | |
parent | 6a52fb620c95f9772cc3480b6e08d9a2d69f3f97 (diff) | |
download | gdb-e825046fcf0193aad44b1f3d1a8514190278b85d.zip gdb-e825046fcf0193aad44b1f3d1a8514190278b85d.tar.gz gdb-e825046fcf0193aad44b1f3d1a8514190278b85d.tar.bz2 |
gdb/gdbserver/
Code cleanup.
* linux-low.c (linux_wait_for_event_1): Use ptid_is_pid.
Diffstat (limited to 'gdb/gdbserver')
-rw-r--r-- | gdb/gdbserver/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/gdbserver/linux-low.c | 3 |
2 files changed, 6 insertions, 2 deletions
diff --git a/gdb/gdbserver/ChangeLog b/gdb/gdbserver/ChangeLog index 0cb67da..dfc5cdd 100644 --- a/gdb/gdbserver/ChangeLog +++ b/gdb/gdbserver/ChangeLog @@ -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. diff --git a/gdb/gdbserver/linux-low.c b/gdb/gdbserver/linux-low.c index eb21e14..6535180 100644 --- a/gdb/gdbserver/linux-low.c +++ b/gdb/gdbserver/linux-low.c @@ -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); |