mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-08-05 21:50:21 +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:
@ -508,7 +508,7 @@ post_create_inferior (struct target_ops *target, int from_tty)
|
||||
static void
|
||||
kill_if_already_running (int from_tty)
|
||||
{
|
||||
if (! ptid_equal (inferior_ptid, null_ptid) && target_has_execution)
|
||||
if (inferior_ptid != null_ptid && target_has_execution)
|
||||
{
|
||||
/* Bail out before killing the program if we will not be able to
|
||||
restart it. */
|
||||
@ -1349,7 +1349,7 @@ signal_command (const char *signum_exp, int from_tty)
|
||||
|
||||
ALL_NON_EXITED_THREADS (tp)
|
||||
{
|
||||
if (ptid_equal (tp->ptid, inferior_ptid))
|
||||
if (tp->ptid == inferior_ptid)
|
||||
continue;
|
||||
if (!tp->ptid.matches (resume_ptid))
|
||||
continue;
|
||||
@ -2592,7 +2592,7 @@ kill_command (const char *arg, int from_tty)
|
||||
It should be a distinct flag that indicates that a target is active, cuz
|
||||
some targets don't have processes! */
|
||||
|
||||
if (ptid_equal (inferior_ptid, null_ptid))
|
||||
if (inferior_ptid == null_ptid)
|
||||
error (_("The program is not being run."));
|
||||
if (!query (_("Kill the program being debugged? ")))
|
||||
error (_("Not confirmed."));
|
||||
@ -2999,7 +2999,7 @@ detach_command (const char *args, int from_tty)
|
||||
{
|
||||
dont_repeat (); /* Not for the faint of heart. */
|
||||
|
||||
if (ptid_equal (inferior_ptid, null_ptid))
|
||||
if (inferior_ptid == null_ptid)
|
||||
error (_("The program is not being run."));
|
||||
|
||||
query_if_trace_running (from_tty);
|
||||
|
Reference in New Issue
Block a user