This removes ptid_tid_p in favor of the ptid_t::tid_p method.
gdb/ChangeLog
2018-07-03 Tom Tromey <tom@tromey.com>
* common/ptid.c (ptid_tid_p): Remove.
* common/ptid.h (ptid_tid_p): Don't declare.
* sol-thread.c: Update.
2018-07-03 Tom Tromey <tom@tromey.com>
2018-07-03 Tom Tromey <tom@tromey.com>
+ * common/ptid.c (ptid_tid_p): Remove.
+ * common/ptid.h (ptid_tid_p): Don't declare.
+ * sol-thread.c: Update.
+
+2018-07-03 Tom Tromey <tom@tromey.com>
+
* common/ptid.c (ptid_lwp_p): Remove.
* common/ptid.h (ptid_lwp_p): Don't declare.
* fbsd-nat.c: Update.
* common/ptid.c (ptid_lwp_p): Remove.
* common/ptid.h (ptid_lwp_p): Don't declare.
* fbsd-nat.c: Update.
-ptid_tid_p (const ptid_t &ptid)
-{
- return ptid.tid_p ();
-}
-
-/* See ptid.h. */
-
-int
ptid_match (const ptid_t &ptid, const ptid_t &filter)
{
return ptid.matches (filter);
ptid_match (const ptid_t &ptid, const ptid_t &filter)
{
return ptid.matches (filter);
extern int ptid_equal (const ptid_t &ptid1, const ptid_t &ptid2);
extern int ptid_equal (const ptid_t &ptid1, const ptid_t &ptid2);
-/* See ptid_t::tid_p. */
-
-extern int ptid_tid_p (const ptid_t &ptid);
-
/* See ptid_t::matches. */
extern int ptid_match (const ptid_t &ptid, const ptid_t &filter);
/* See ptid_t::matches. */
extern int ptid_match (const ptid_t &ptid, const ptid_t &filter);
td_thrhandle_t th;
td_err_e val;
td_thrhandle_t th;
td_err_e val;
return lwp; /* It's already a thread ID. */
/* It's an LWP. Convert it to a thread ID. */
return lwp; /* It's already a thread ID. */
/* It's an LWP. Convert it to a thread ID. */
rtnval = save_ptid;
/* See if we have a new thread. */
rtnval = save_ptid;
/* See if we have a new thread. */
- if (ptid_tid_p (rtnval)
&& !ptid_equal (rtnval, save_ptid)
&& (!in_thread_list (rtnval)
|| is_exited (rtnval)))
&& !ptid_equal (rtnval, save_ptid)
&& (!in_thread_list (rtnval)
|| is_exited (rtnval)))
gdb_fpregset_t *fpregset_p = &fpregset;
ptid_t ptid = regcache->ptid ();
gdb_fpregset_t *fpregset_p = &fpregset;
ptid_t ptid = regcache->ptid ();
- if (!ptid_tid_p (ptid))
{
/* It's an LWP; pass the request on to the layer beneath. */
beneath ()->fetch_registers (regcache, regnum);
{
/* It's an LWP; pass the request on to the layer beneath. */
beneath ()->fetch_registers (regcache, regnum);
prfpregset_t fpregset;
ptid_t ptid = regcache->ptid ();
prfpregset_t fpregset;
ptid_t ptid = regcache->ptid ();
- if (!ptid_tid_p (ptid))
{
/* It's an LWP; pass the request on to the layer beneath. */
beneath ()->store_registers (regcache, regnum);
{
/* It's an LWP; pass the request on to the layer beneath. */
beneath ()->store_registers (regcache, regnum);
{
scoped_restore save_inferior_ptid = make_scoped_restore (&inferior_ptid);
{
scoped_restore save_inferior_ptid = make_scoped_restore (&inferior_ptid);
- if (ptid_tid_p (inferior_ptid) || !target_thread_alive (inferior_ptid))
+ if (inferior_ptid.tid_p () || !target_thread_alive (inferior_ptid))
{
/* It's either a thread or an LWP that isn't alive. Any live
LWP will do so use the first available.
{
/* It's either a thread or an LWP that isn't alive. Any live
LWP will do so use the first available.
bool
sol_thread_target::thread_alive (ptid_t ptid)
{
bool
sol_thread_target::thread_alive (ptid_t ptid)
{
{
/* It's a (user-level) thread. */
td_err_e val;
{
/* It's a (user-level) thread. */
td_err_e val;
scoped_restore save_inferior_ptid = make_scoped_restore (&inferior_ptid);
scoped_restore save_inferior_ptid = make_scoped_restore (&inferior_ptid);
- if (ptid_tid_p (inferior_ptid) || !target_thread_alive (inferior_ptid))
+ if (inferior_ptid.tid_p () || !target_thread_alive (inferior_ptid))
{
/* It's either a thread or an LWP that isn't alive. Any live
LWP will do so use the first available.
{
/* It's either a thread or an LWP that isn't alive. Any live
LWP will do so use the first available.