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:
parent
26a57c9256
commit
d7e15655a4
49 changed files with 233 additions and 194 deletions
16
gdb/target.c
16
gdb/target.c
|
@ -219,7 +219,7 @@ int
|
|||
default_child_has_all_memory ()
|
||||
{
|
||||
/* If no inferior selected, then we can't read memory here. */
|
||||
if (ptid_equal (inferior_ptid, null_ptid))
|
||||
if (inferior_ptid == null_ptid)
|
||||
return 0;
|
||||
|
||||
return 1;
|
||||
|
@ -229,7 +229,7 @@ int
|
|||
default_child_has_memory ()
|
||||
{
|
||||
/* If no inferior selected, then we can't read memory here. */
|
||||
if (ptid_equal (inferior_ptid, null_ptid))
|
||||
if (inferior_ptid == null_ptid)
|
||||
return 0;
|
||||
|
||||
return 1;
|
||||
|
@ -239,7 +239,7 @@ int
|
|||
default_child_has_stack ()
|
||||
{
|
||||
/* If no inferior selected, there's no stack. */
|
||||
if (ptid_equal (inferior_ptid, null_ptid))
|
||||
if (inferior_ptid == null_ptid)
|
||||
return 0;
|
||||
|
||||
return 1;
|
||||
|
@ -249,7 +249,7 @@ int
|
|||
default_child_has_registers ()
|
||||
{
|
||||
/* Can't read registers from no inferior. */
|
||||
if (ptid_equal (inferior_ptid, null_ptid))
|
||||
if (inferior_ptid == null_ptid)
|
||||
return 0;
|
||||
|
||||
return 1;
|
||||
|
@ -260,7 +260,7 @@ default_child_has_execution (ptid_t the_ptid)
|
|||
{
|
||||
/* If there's no thread selected, then we can't make it run through
|
||||
hoops. */
|
||||
if (ptid_equal (the_ptid, null_ptid))
|
||||
if (the_ptid == null_ptid)
|
||||
return 0;
|
||||
|
||||
return 1;
|
||||
|
@ -1052,7 +1052,7 @@ raw_memory_xfer_partial (struct target_ops *ops, gdb_byte *readbuf,
|
|||
first, so that if it fails, we don't write to the cache contents
|
||||
that never made it to the target. */
|
||||
if (writebuf != NULL
|
||||
&& !ptid_equal (inferior_ptid, null_ptid)
|
||||
&& inferior_ptid != null_ptid
|
||||
&& target_dcache_init_p ()
|
||||
&& (stack_cache_enabled_p () || code_cache_enabled_p ()))
|
||||
{
|
||||
|
@ -1127,7 +1127,7 @@ memory_xfer_partial_1 (struct target_ops *ops, enum target_object object,
|
|||
®ion))
|
||||
return TARGET_XFER_E_IO;
|
||||
|
||||
if (!ptid_equal (inferior_ptid, null_ptid))
|
||||
if (inferior_ptid != null_ptid)
|
||||
inf = current_inferior ();
|
||||
else
|
||||
inf = NULL;
|
||||
|
@ -2229,7 +2229,7 @@ default_mourn_inferior (struct target_ops *self)
|
|||
void
|
||||
target_mourn_inferior (ptid_t ptid)
|
||||
{
|
||||
gdb_assert (ptid_equal (ptid, inferior_ptid));
|
||||
gdb_assert (ptid == inferior_ptid);
|
||||
current_top_target ()->mourn_inferior ();
|
||||
|
||||
/* We no longer need to keep handles on any of the object files.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue