mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-05-31 18:20:12 +08:00
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.
This commit is contained in:
@ -144,7 +144,7 @@ delete_fork (ptid_t ptid)
|
||||
linux_target->low_forget_process (ptid.pid ());
|
||||
|
||||
for (fp = fork_list; fp; fpprev = fp, fp = fp->next)
|
||||
if (ptid_equal (fp->ptid, ptid))
|
||||
if (fp->ptid == ptid)
|
||||
break;
|
||||
|
||||
if (!fp)
|
||||
@ -162,7 +162,7 @@ delete_fork (ptid_t ptid)
|
||||
remove it, leaving the list empty -- we're now down to the
|
||||
default case of debugging a single process. */
|
||||
if (fork_list != NULL && fork_list->next == NULL &&
|
||||
ptid_equal (fork_list->ptid, inferior_ptid))
|
||||
fork_list->ptid == inferior_ptid)
|
||||
{
|
||||
/* Last fork -- delete from list and handle as solo process
|
||||
(should be a safe recursion). */
|
||||
@ -177,7 +177,7 @@ find_fork_ptid (ptid_t ptid)
|
||||
struct fork_info *fp;
|
||||
|
||||
for (fp = fork_list; fp; fp = fp->next)
|
||||
if (ptid_equal (fp->ptid, ptid))
|
||||
if (fp->ptid == ptid)
|
||||
return fp;
|
||||
|
||||
return NULL;
|
||||
@ -462,7 +462,7 @@ inferior_call_waitpid (ptid_t pptid, int pid)
|
||||
struct cleanup *old_cleanup;
|
||||
int ret = -1;
|
||||
|
||||
if (!ptid_equal (pptid, inferior_ptid))
|
||||
if (pptid != inferior_ptid)
|
||||
{
|
||||
/* Switch to pptid. */
|
||||
oldfp = find_fork_ptid (inferior_ptid);
|
||||
@ -515,10 +515,10 @@ delete_checkpoint_command (const char *args, int from_tty)
|
||||
error (_("Requires argument (checkpoint id to delete)"));
|
||||
|
||||
ptid = fork_id_to_ptid (parse_and_eval_long (args));
|
||||
if (ptid_equal (ptid, minus_one_ptid))
|
||||
if (ptid == minus_one_ptid)
|
||||
error (_("No such checkpoint id, %s"), args);
|
||||
|
||||
if (ptid_equal (ptid, inferior_ptid))
|
||||
if (ptid == inferior_ptid)
|
||||
error (_("\
|
||||
Please switch to another checkpoint before deleting the current one"));
|
||||
|
||||
@ -556,10 +556,10 @@ detach_checkpoint_command (const char *args, int from_tty)
|
||||
error (_("Requires argument (checkpoint id to detach)"));
|
||||
|
||||
ptid = fork_id_to_ptid (parse_and_eval_long (args));
|
||||
if (ptid_equal (ptid, minus_one_ptid))
|
||||
if (ptid == minus_one_ptid)
|
||||
error (_("No such checkpoint id, %s"), args);
|
||||
|
||||
if (ptid_equal (ptid, inferior_ptid))
|
||||
if (ptid == inferior_ptid)
|
||||
error (_("\
|
||||
Please switch to another checkpoint before detaching the current one"));
|
||||
|
||||
@ -593,7 +593,7 @@ info_checkpoints_command (const char *arg, int from_tty)
|
||||
continue;
|
||||
|
||||
printed = fp;
|
||||
if (ptid_equal (fp->ptid, inferior_ptid))
|
||||
if (fp->ptid == inferior_ptid)
|
||||
printf_filtered ("* ");
|
||||
else
|
||||
printf_filtered (" ");
|
||||
|
Reference in New Issue
Block a user