diff options
author | Tom Tromey <tom@tromey.com> | 2018-06-11 14:45:22 -0600 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2018-07-03 11:36:46 -0600 |
commit | d7e15655a40e9133a1cbf53ea071f82cd6745ac8 (patch) | |
tree | 78381ff8daa008d7debde45e889279381d95bd91 /gdb/ravenscar-thread.c | |
parent | 26a57c9256d7ec2b4da2f1d85a9fba830948dbd9 (diff) | |
download | gdb-d7e15655a40e9133a1cbf53ea071f82cd6745ac8.zip gdb-d7e15655a40e9133a1cbf53ea071f82cd6745ac8.tar.gz gdb-d7e15655a40e9133a1cbf53ea071f82cd6745ac8.tar.bz2 |
Remove ptid_equal
Remove ptid_equal in favor of using "==".
gdb/ChangeLog
2018-07-03 Tom Tromey <tom@tromey.com>
* common/ptid.c (ptid_equal): Remove.
* common/ptid.h (ptid_equal): Don't declare.
* ada-tasks.c: Update.
* breakpoint.c: Update.
* common/agent.c: Update.
* corelow.c: Update.
* darwin-nat-info.c: Update.
* darwin-nat.c: Update.
* dcache.c: Update.
* dtrace-probe.c: Update.
* dummy-frame.c: Update.
* fbsd-nat.c: Update.
* frame.c: Update.
* gdbthread.h: Update.
* gnu-nat.c: Update.
* go32-nat.c: Update.
* inf-loop.c: Update.
* inf-ptrace.c: Update.
* infcall.c: Update.
* infcmd.c: Update.
* inflow.c: Update.
* infrun.c: Update.
* linux-fork.c: Update.
* linux-nat.c: Update.
* linux-thread-db.c: Update.
* mi/mi-cmd-var.c: Update.
* mi/mi-interp.c: Update.
* mi/mi-main.c: Update.
* nto-procfs.c: Update.
* ppc-linux-tdep.c: Update.
* procfs.c: Update.
* python/py-inferior.c: Update.
* python/py-record-btrace.c: Update.
* python/py-record.c: Update.
* ravenscar-thread.c: Update.
* regcache.c: Update.
* remote-sim.c: Update.
* remote.c: Update.
* sol-thread.c: Update.
* solib.c: Update.
* target.c: Update.
* tui/tui-stack.c: Update.
* varobj.c: Update.
* windows-nat.c: Update.
* windows-tdep.c: Update.
gdb/gdbserver/ChangeLog
2018-07-03 Tom Tromey <tom@tromey.com>
* linux-low.c: Update.
* lynx-low.c: Update.
* mem-break.c: Update.
* nto-low.c: Update.
* remote-utils.c: Update.
* server.c: Update.
* spu-low.c: Update.
* target.c: Update.
* win32-low.c: Update.
Diffstat (limited to 'gdb/ravenscar-thread.c')
-rw-r--r-- | gdb/ravenscar-thread.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gdb/ravenscar-thread.c b/gdb/ravenscar-thread.c index 0e6b9eb..8bd31a5 100644 --- a/gdb/ravenscar-thread.c +++ b/gdb/ravenscar-thread.c @@ -193,7 +193,7 @@ ravenscar_task_is_currently_active (ptid_t ptid) ptid_t active_task_ptid = ravenscar_active_task (ravenscar_get_thread_base_cpu (ptid)); - return ptid_equal (ptid, active_task_ptid); + return ptid == active_task_ptid; } /* Return the CPU thread (as a ptid_t) on which the given ravenscar @@ -235,7 +235,7 @@ ravenscar_update_inferior_ptid (void) /* Make sure we set base_ptid before calling ravenscar_active_task as the latter relies on it. */ inferior_ptid = ravenscar_active_task (base_cpu); - gdb_assert (!ptid_equal (inferior_ptid, null_ptid)); + gdb_assert (inferior_ptid != null_ptid); /* The running thread may not have been added to system.tasking.debug's list yet; so ravenscar_update_thread_list @@ -291,7 +291,7 @@ has_ravenscar_runtime (void) static int ravenscar_runtime_initialized (void) { - return (!(ptid_equal (ravenscar_active_task (1), null_ptid))); + return (!(ravenscar_active_task (1) == null_ptid)); } /* Return the ID of the thread that is currently running. |