mirror of
https://github.com/bminor/binutils-gdb.git
synced 2025-12-28 01:50:48 +00:00
Remove pid_to_ptid
This removes pid_to_ptid in favor of calling the ptid_t constructor directly. gdb/ChangeLog 2018-07-03 Tom Tromey <tom@tromey.com> * common/ptid.c (pid_to_ptid): Remove. * common/ptid.h (pid_to_ptid): Don't declare. * aix-thread.c: Update. * arm-linux-nat.c: Update. * common/ptid.c: Update. * common/ptid.h: Update. * corelow.c: Update. * ctf.c: Update. * darwin-nat.c: Update. * fbsd-nat.c: Update. * fork-child.c: Update. * gnu-nat.c: Update. * go32-nat.c: Update. * inf-ptrace.c: Update. * infcmd.c: Update. * inferior.c: Update. * infrun.c: Update. * linux-fork.c: Update. * linux-nat.c: Update. * nat/aarch64-linux-hw-point.c: Update. * nat/fork-inferior.c: Update. * nat/x86-linux-dregs.c: Update. * nto-procfs.c: Update. * obsd-nat.c: Update. * procfs.c: Update. * progspace.c: Update. * remote.c: Update. * rs6000-nat.c: Update. * s390-linux-nat.c: Update. * sol-thread.c: Update. * spu-linux-nat.c: Update. * target.c: Update. * top.c: Update. * tracefile-tfile.c: Update. * windows-nat.c: Update. gdb/gdbserver/ChangeLog 2018-07-03 Tom Tromey <tom@tromey.com> * linux-low.c: Update. * linux-ppc-low.c: Update. * linux-x86-low.c: Update. * proc-service.c: Update. * server.c: Update. * spu-low.c: Update. * thread-db.c: Update. * win32-low.c: Update.
This commit is contained in:
@@ -457,7 +457,7 @@ core_target_open (const char *arg, int from_tty)
|
||||
if (thread == NULL)
|
||||
{
|
||||
inferior_appeared (current_inferior (), CORELOW_PID);
|
||||
inferior_ptid = pid_to_ptid (CORELOW_PID);
|
||||
inferior_ptid = ptid_t (CORELOW_PID);
|
||||
add_thread_silent (inferior_ptid);
|
||||
}
|
||||
else
|
||||
@@ -1007,7 +1007,7 @@ core_target::pid_to_str (ptid_t ptid)
|
||||
/* Try the LWPID field first. */
|
||||
pid = ptid_get_lwp (ptid);
|
||||
if (pid != 0)
|
||||
return normal_pid_to_str (pid_to_ptid (pid));
|
||||
return normal_pid_to_str (ptid_t (pid));
|
||||
|
||||
/* Otherwise, this isn't a "threaded" core -- use the PID field, but
|
||||
only if it isn't a fake PID. */
|
||||
|
||||
Reference in New Issue
Block a user