projects
/
external
/
binutils.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Per-inferior thread list, thread ranges/iterators, down with ALL_THREADS, etc.
[external/binutils.git]
/
gdb
/
fork-child.c
diff --git
a/gdb/fork-child.c
b/gdb/fork-child.c
index
1de96b6
..
1742740
100644
(file)
--- a/
gdb/fork-child.c
+++ b/
gdb/fork-child.c
@@
-78,12
+78,7
@@
prefork_hook (const char *args)
void
postfork_hook (pid_t pid)
{
- struct inferior *inf;
-
- if (!have_inferiors ())
- init_thread_list ();
-
- inf = current_inferior ();
+ inferior *inf = current_inferior ();
inferior_appeared (inf, pid);