aboutsummaryrefslogtreecommitdiff
path: root/gdb/fork-child.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/fork-child.c')
-rw-r--r--gdb/fork-child.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gdb/fork-child.c b/gdb/fork-child.c
index 40f7680..8eade52 100644
--- a/gdb/fork-child.c
+++ b/gdb/fork-child.c
@@ -242,6 +242,8 @@ fork_inferior (exec_file, allargs, env, traceme_fun, init_trace_fun)
initialize anything target-vector-specific that needs initializing. */
(*init_trace_fun)(pid);
+ init_thread_list();
+
#ifdef CREATE_INFERIOR_HOOK
CREATE_INFERIOR_HOOK (pid);
#endif