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/mi | |
parent | cc6bcb548d67a5a0a7223d81bd43c299312320c8 (diff) | |
download | gdb-0e998d966be13e548721109a4e44b2887fc5cb24.zip gdb-0e998d966be13e548721109a4e44b2887fc5cb24.tar.gz 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/mi')
-rw-r--r-- | gdb/mi/mi-interp.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/mi/mi-interp.c b/gdb/mi/mi-interp.c index 1f36819..9a48ee0 100644 --- a/gdb/mi/mi-interp.c +++ b/gdb/mi/mi-interp.c @@ -970,7 +970,7 @@ mi_on_resume_1 (struct mi_interp *mi, ptid_t ptid) if (ptid.pid () == -1) fprintf_unfiltered (mi->raw_stdout, "*running,thread-id=\"all\"\n"); - else if (ptid_is_pid (ptid)) + else if (ptid.is_pid ()) { int count = 0; inferior *inf; @@ -1023,7 +1023,7 @@ mi_on_resume (ptid_t ptid) { struct thread_info *tp = NULL; - if (ptid_equal (ptid, minus_one_ptid) || ptid_is_pid (ptid)) + if (ptid_equal (ptid, minus_one_ptid) || ptid.is_pid ()) tp = inferior_thread (); else tp = find_thread_ptid (ptid); |