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/remote.c | |
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/remote.c')
-rw-r--r-- | gdb/remote.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/gdb/remote.c b/gdb/remote.c index 0d64458..8343058 100644 --- a/gdb/remote.c +++ b/gdb/remote.c @@ -2435,7 +2435,7 @@ remote_target::remote_notice_new_inferior (ptid_t currthread, int executing) struct inferior *inf = NULL; int pid = currthread.pid (); - if (ptid_is_pid (inferior_ptid) + if (inferior_ptid.is_pid () && pid == inferior_ptid.pid ()) { /* inferior_ptid has no thread member yet. This can happen @@ -5998,7 +5998,7 @@ remote_target::append_resumption (char *p, char *endp, threads with a wildcard (though the protocol allows it, so stubs shouldn't make an active effort to forbid it). */ - && !(remote_multi_process_p (rs) && ptid_is_pid (ptid))) + && !(remote_multi_process_p (rs) && ptid.is_pid ())) { struct thread_info *tp; @@ -6032,7 +6032,7 @@ remote_target::append_resumption (char *p, char *endp, else p += xsnprintf (p, endp - p, ";c"); - if (remote_multi_process_p (rs) && ptid_is_pid (ptid)) + if (remote_multi_process_p (rs) && ptid.is_pid ()) { ptid_t nptid; @@ -6185,7 +6185,7 @@ remote_target::remote_resume_with_vcont (ptid_t ptid, int step, a TID. */ append_resumption (p, endp, minus_one_ptid, step, siggnal); } - else if (ptid_equal (ptid, minus_one_ptid) || ptid_is_pid (ptid)) + else if (ptid_equal (ptid, minus_one_ptid) || ptid.is_pid ()) { /* Resume all threads (of all processes, or of a single process), with preference for INFERIOR_PTID. This assumes @@ -6244,7 +6244,7 @@ remote_target::resume (ptid_t ptid, int step, enum gdb_signal siggnal) { remote_thread_info *remote_thr; - if (ptid_equal (minus_one_ptid, ptid) || ptid_is_pid (ptid)) + if (ptid_equal (minus_one_ptid, ptid) || ptid.is_pid ()) remote_thr = get_remote_thread_info (inferior_ptid); else remote_thr = get_remote_thread_info (ptid); @@ -6605,7 +6605,7 @@ remote_target::remote_stop_ns (ptid_t ptid) error (_("Remote server does not support stopping threads")); if (ptid_equal (ptid, minus_one_ptid) - || (!remote_multi_process_p (rs) && ptid_is_pid (ptid))) + || (!remote_multi_process_p (rs) && ptid.is_pid ())) p += xsnprintf (p, endp - p, "vCont;t"); else { @@ -6613,7 +6613,7 @@ remote_target::remote_stop_ns (ptid_t ptid) p += xsnprintf (p, endp - p, "vCont;t:"); - if (ptid_is_pid (ptid)) + if (ptid.is_pid ()) /* All (-1) threads of process. */ nptid = ptid_t (ptid.pid (), -1, 0); else @@ -11442,7 +11442,7 @@ remote_target::pid_to_str (ptid_t ptid) if (ptid_equal (ptid, null_ptid)) return normal_pid_to_str (ptid); - else if (ptid_is_pid (ptid)) + else if (ptid.is_pid ()) { /* Printing an inferior target id. */ |