Remove ptid_build

This removes ptid_build in favor of simply calling the ptid_t
constructor directly.

gdb/ChangeLog
2018-07-03  Tom Tromey  <tom@tromey.com>

	* common/ptid.h (ptid_build): Don't declare.
	* common/ptid.c (ptid_build): Remove.
	* aix-thread.c: Update.
	* bsd-kvm.c: Update.
	* bsd-uthread.c: Update.
	* common/agent.c: Update.
	* common/ptid.c: Update.
	* common/ptid.h: Update.
	* corelow.c: Update.
	* darwin-nat.c: Update.
	* fbsd-nat.c: Update.
	* gnu-nat.c: Update.
	* linux-fork.c: Update.
	* linux-nat.c: Update.
	* linux-thread-db.c: Update.
	* nat/linux-osdata.c: Update.
	* nat/linux-procfs.c: Update.
	* nto-procfs.c: Update.
	* obsd-nat.c: Update.
	* proc-service.c: Update.
	* procfs.c: Update.
	* ravenscar-thread.c: Update.
	* remote-sim.c: Update.
	* remote.c: Update.
	* sol-thread.c: Update.
	* target.c: Update.
	* windows-nat.c: Update.

gdb/gdbserver/ChangeLog
2018-07-03  Tom Tromey  <tom@tromey.com>

	* linux-low.c: Update.
	* lynx-low.c: Update.
	* nto-low.c: Update.
	* remote-utils.c: Update.
	* spu-low.c: Update.
	* thread-db.c: Update.
	* win32-low.c: Update.
This commit is contained in:
Tom Tromey
2018-06-11 11:18:51 -06:00
parent 057302ceb3
commit fd79271bd9
33 changed files with 157 additions and 130 deletions

View File

@ -1096,7 +1096,7 @@ inf_validate_procs (struct inf *inf)
last = thread;
proc_debug (thread, "new thread: %lu", threads[i]);
ptid = ptid_build (inf->pid, thread->tid, 0);
ptid = ptid_t (inf->pid, thread->tid, 0);
/* Tell GDB's generic thread code. */
@ -1616,7 +1616,7 @@ rewait:
thread = inf->wait.thread;
if (thread)
ptid = ptid_build (inf->pid, thread->tid, 0);
ptid = ptid_t (inf->pid, thread->tid, 0);
else if (ptid_equal (ptid, minus_one_ptid))
thread = inf_tid_to_thread (inf, -1);
else
@ -1626,7 +1626,7 @@ rewait:
{
/* TID is dead; try and find a new thread. */
if (inf_update_procs (inf) && inf->threads)
ptid = ptid_build (inf->pid, inf->threads->tid, 0); /* The first
ptid = ptid_t (inf->pid, inf->threads->tid, 0); /* The first
available
thread. */
else
@ -2167,7 +2167,7 @@ gnu_nat_target::create_inferior (const char *exec_file,
/* We now have thread info. */
thread_change_ptid (inferior_ptid,
ptid_build (inf->pid, inf_pick_first_thread (), 0));
ptid_t (inf->pid, inf_pick_first_thread (), 0));
gdb_startup_inferior (pid, START_INFERIOR_TRAPS_EXPECTED);
@ -2228,7 +2228,7 @@ gnu_nat_target::attach (const char *args, int from_tty)
inf_update_procs (inf);
inferior_ptid = ptid_build (pid, inf_pick_first_thread (), 0);
inferior_ptid = ptid_t (pid, inf_pick_first_thread (), 0);
/* We have to initialize the terminal settings now, since the code
below might try to restore them. */