diff options
author | Tom Tromey <tom@tromey.com> | 2018-06-11 12:18:15 -0600 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2018-07-03 11:36:44 -0600 |
commit | 0e998d966be13e548721109a4e44b2887fc5cb24 (patch) | |
tree | ad4160f5b9cbe6fd4649701cc45a40a95944e95b /gdb/thread.c | |
parent | cc6bcb548d67a5a0a7223d81bd43c299312320c8 (diff) | |
download | fsf-binutils-gdb-0e998d966be13e548721109a4e44b2887fc5cb24.zip fsf-binutils-gdb-0e998d966be13e548721109a4e44b2887fc5cb24.tar.gz fsf-binutils-gdb-0e998d966be13e548721109a4e44b2887fc5cb24.tar.bz2 |
Remove ptid_is_pid
This removes ptid_is_pid in favor of the ptid_t::is_pid method.
gdb/ChangeLog
2018-07-03 Tom Tromey <tom@tromey.com>
* common/ptid.c (ptid_is_pid): Remove.
* common/ptid.h (ptid_is_pid): Don't declare.
* infrun.c: Update.
* linux-nat.c: Update.
* mi/mi-interp.c: Update.
* remote.c: Update.
* thread.c: Update.
gdb/gdbserver/ChangeLog
2018-07-03 Tom Tromey <tom@tromey.com>
* linux-low.c: Update.
Diffstat (limited to 'gdb/thread.c')
-rw-r--r-- | gdb/thread.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/gdb/thread.c b/gdb/thread.c index 3f3d6f2..517a807 100644 --- a/gdb/thread.c +++ b/gdb/thread.c @@ -799,7 +799,7 @@ set_resumed (ptid_t ptid, int resumed) struct thread_info *tp; int all = ptid == minus_one_ptid; - if (all || ptid_is_pid (ptid)) + if (all || ptid.is_pid ()) { for (tp = thread_list; tp; tp = tp->next) if (all || tp->ptid.pid () == ptid.pid ()) @@ -856,7 +856,7 @@ set_running (ptid_t ptid, int running) /* We try not to notify the observer if no thread has actually changed the running state -- merely to reduce the number of messages to frontend. Frontend is supposed to handle multiple *running just fine. */ - if (all || ptid_is_pid (ptid)) + if (all || ptid.is_pid ()) { for (tp = thread_list; tp; tp = tp->next) if (all || tp->ptid.pid () == ptid.pid ()) @@ -936,7 +936,7 @@ set_executing (ptid_t ptid, int executing) struct thread_info *tp; int all = ptid == minus_one_ptid; - if (all || ptid_is_pid (ptid)) + if (all || ptid.is_pid ()) { for (tp = thread_list; tp; tp = tp->next) if (all || tp->ptid.pid () == ptid.pid ()) @@ -972,7 +972,7 @@ set_stop_requested (ptid_t ptid, int stop) struct thread_info *tp; int all = ptid == minus_one_ptid; - if (all || ptid_is_pid (ptid)) + if (all || ptid.is_pid ()) { for (tp = thread_list; tp; tp = tp->next) if (all || tp->ptid.pid () == ptid.pid ()) @@ -1000,7 +1000,7 @@ finish_thread_state (ptid_t ptid) all = ptid == minus_one_ptid; - if (all || ptid_is_pid (ptid)) + if (all || ptid.is_pid ()) { for (tp = thread_list; tp; tp = tp->next) { |