mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-08-06 06:45:56 +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:
@ -302,8 +302,7 @@ ada_get_task_number (thread_info *thread)
|
||||
data = get_ada_tasks_inferior_data (inf);
|
||||
|
||||
for (i = 0; i < VEC_length (ada_task_info_s, data->task_list); i++)
|
||||
if (ptid_equal (VEC_index (ada_task_info_s, data->task_list, i)->ptid,
|
||||
thread->ptid))
|
||||
if (VEC_index (ada_task_info_s, data->task_list, i)->ptid == thread->ptid)
|
||||
return i + 1;
|
||||
|
||||
return 0; /* No matching task found. */
|
||||
@ -370,7 +369,7 @@ ada_get_task_info_from_ptid (ptid_t ptid)
|
||||
for (i = 0; i < nb_tasks; i++)
|
||||
{
|
||||
task = VEC_index (ada_task_info_s, data->task_list, i);
|
||||
if (ptid_equal (task->ptid, ptid))
|
||||
if (task->ptid == ptid)
|
||||
return task;
|
||||
}
|
||||
|
||||
@ -1111,7 +1110,7 @@ print_ada_task_info (struct ui_out *uiout,
|
||||
|
||||
/* Print a star if this task is the current task (or the task
|
||||
currently selected). */
|
||||
if (ptid_equal (task_info->ptid, inferior_ptid))
|
||||
if (task_info->ptid == inferior_ptid)
|
||||
uiout->field_string ("current", "*");
|
||||
else
|
||||
uiout->field_skip ("current");
|
||||
|
Reference in New Issue
Block a user