From f2907e49910853edf3c1aec995b3c44b3bba8999 Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Mon, 11 Jun 2018 11:25:49 -0600 Subject: 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 * 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 * 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. --- gdb/fork-child.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gdb/fork-child.c') diff --git a/gdb/fork-child.c b/gdb/fork-child.c index e1719a0..1de96b6 100644 --- a/gdb/fork-child.c +++ b/gdb/fork-child.c @@ -88,7 +88,7 @@ postfork_hook (pid_t pid) inferior_appeared (inf, pid); /* Needed for wait_for_inferior stuff. */ - inferior_ptid = pid_to_ptid (pid); + inferior_ptid = ptid_t (pid); gdb_assert (saved_ui != NULL); current_ui = saved_ui; -- cgit v1.1