aboutsummaryrefslogtreecommitdiff
path: root/gdb/fork-child.c
diff options
context:
space:
mode:
authorPedro Alves <palves@redhat.com>2020-06-18 21:28:32 +0100
committerPedro Alves <palves@redhat.com>2020-06-18 23:15:16 +0100
commit6d350754a32007465f9adbc11b87339e4493b358 (patch)
tree99523a020759f5c4b566f4dafa7438f528baaa8f /gdb/fork-child.c
parent5d971d48b922afc1cfe3ba1798477473cfbd052e (diff)
downloadgdb-6d350754a32007465f9adbc11b87339e4493b358.zip
gdb-6d350754a32007465f9adbc11b87339e4493b358.tar.gz
gdb-6d350754a32007465f9adbc11b87339e4493b358.tar.bz2
Don't write to inferior_ptid in fork-child.c
This is no longer necessary. All targets that call fork_inferior now also call switch_to_thread as soon as they add the main thread. gdb/ChangeLog: 2020-06-18 Pedro Alves <palves@redhat.com> * fork-child.c (postfork_hook): Don't write to inferior_ptid.
Diffstat (limited to 'gdb/fork-child.c')
-rw-r--r--gdb/fork-child.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/gdb/fork-child.c b/gdb/fork-child.c
index 41d5e2a..90a01b2 100644
--- a/gdb/fork-child.c
+++ b/gdb/fork-child.c
@@ -82,9 +82,6 @@ postfork_hook (pid_t pid)
inferior_appeared (inf, pid);
- /* Needed for wait_for_inferior stuff. */
- inferior_ptid = ptid_t (pid);
-
gdb_assert (saved_ui != NULL);
current_ui = saved_ui;
saved_ui = NULL;