forked from Imagelibrary/binutils-gdb
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:
@@ -1690,7 +1690,7 @@ linux_nat_target::resume (ptid_t ptid, int step, enum gdb_signal signo)
|
||||
target_pid_to_str (inferior_ptid));
|
||||
|
||||
/* A specific PTID means `step only this process id'. */
|
||||
resume_many = (ptid_equal (minus_one_ptid, ptid)
|
||||
resume_many = (minus_one_ptid == ptid
|
||||
|| ptid.is_pid ());
|
||||
|
||||
/* Mark the lwps we're resuming as resumed. */
|
||||
@@ -3389,7 +3389,7 @@ linux_nat_wait_1 (ptid_t ptid, struct target_waitstatus *ourstatus,
|
||||
/* If we're not waiting for a specific LWP, choose an event LWP from
|
||||
among those that have had events. Giving equal priority to all
|
||||
LWPs that have had events helps prevent starvation. */
|
||||
if (ptid_equal (ptid, minus_one_ptid) || ptid.is_pid ())
|
||||
if (ptid == minus_one_ptid || ptid.is_pid ())
|
||||
select_event_lwp (ptid, &lp, &status);
|
||||
|
||||
gdb_assert (lp != NULL);
|
||||
@@ -3583,7 +3583,7 @@ linux_nat_target::wait (ptid_t ptid, struct target_waitstatus *ourstatus,
|
||||
if (target_is_async_p ()
|
||||
&& ((ourstatus->kind != TARGET_WAITKIND_IGNORE
|
||||
&& ourstatus->kind != TARGET_WAITKIND_NO_RESUMED)
|
||||
|| !ptid_equal (ptid, minus_one_ptid)))
|
||||
|| ptid != minus_one_ptid))
|
||||
async_file_mark ();
|
||||
|
||||
return event_ptid;
|
||||
@@ -3857,7 +3857,7 @@ linux_nat_target::xfer_partial (enum target_object object,
|
||||
/* The target is connected but no live inferior is selected. Pass
|
||||
this request down to a lower stratum (e.g., the executable
|
||||
file). */
|
||||
if (object == TARGET_OBJECT_MEMORY && ptid_equal (inferior_ptid, null_ptid))
|
||||
if (object == TARGET_OBJECT_MEMORY && inferior_ptid == null_ptid)
|
||||
return TARGET_XFER_EOF;
|
||||
|
||||
if (object == TARGET_OBJECT_AUXV)
|
||||
|
||||
Reference in New Issue
Block a user