diff options
author | Yao Qi <yao@codesourcery.com> | 2012-06-12 14:02:15 +0000 |
---|---|---|
committer | Yao Qi <yao@codesourcery.com> | 2012-06-12 14:02:15 +0000 |
commit | 0c9070b30af40e837ae05cdbaf6f486690fffaf8 (patch) | |
tree | a4672918530bb037eb9a7a8eee5b3b282a70467b /gdb/gdbserver/linux-low.c | |
parent | 8981c88a1e028446400c393b82fc415481cc07c3 (diff) | |
download | gdb-0c9070b30af40e837ae05cdbaf6f486690fffaf8.zip gdb-0c9070b30af40e837ae05cdbaf6f486690fffaf8.tar.gz gdb-0c9070b30af40e837ae05cdbaf6f486690fffaf8.tar.bz2 |
gdb/gdbserver:
* linux-low.c (linux_set_resume_request): Simplify predicate. Add
comment.
* server.c (handle_v_cont): Extend comment.
Diffstat (limited to 'gdb/gdbserver/linux-low.c')
-rw-r--r-- | gdb/gdbserver/linux-low.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/gdb/gdbserver/linux-low.c b/gdb/gdbserver/linux-low.c index 3e88c42..3d116fd 100644 --- a/gdb/gdbserver/linux-low.c +++ b/gdb/gdbserver/linux-low.c @@ -3339,10 +3339,11 @@ linux_set_resume_request (struct inferior_list_entry *entry, void *arg) ptid_t ptid = r->resume[ndx].thread; if (ptid_equal (ptid, minus_one_ptid) || ptid_equal (ptid, entry->id) - || (ptid_is_pid (ptid) - && (ptid_get_pid (ptid) == pid_of (lwp))) - || (ptid_get_lwp (ptid) == -1 - && (ptid_get_pid (ptid) == pid_of (lwp)))) + /* Handle both 'pPID' and 'pPID.-1' as meaning 'all threads + of PID'. */ + || (ptid_get_pid (ptid) == pid_of (lwp) + && (ptid_is_pid (ptid) + || ptid_get_lwp (ptid) == -1))) { if (r->resume[ndx].kind == resume_stop && thread->last_resume_kind == resume_stop) |