projects
/
external
/
binutils.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Change lookup_symbol's block_index parameter type to block_enum
[external/binutils.git]
/
gdb
/
fork-child.c
diff --git
a/gdb/fork-child.c
b/gdb/fork-child.c
index
e1719a0
..
edfb6a3
100644
(file)
--- a/
gdb/fork-child.c
+++ b/
gdb/fork-child.c
@@
-1,6
+1,6
@@
/* Fork a Unix child process, and set up to debug it, for GDB.
/* Fork a Unix child process, and set up to debug it, for GDB.
- Copyright (C) 1990-201
8
Free Software Foundation, Inc.
+ Copyright (C) 1990-201
9
Free Software Foundation, Inc.
Contributed by Cygnus Support.
Contributed by Cygnus Support.
@@
-25,17
+25,17
@@
#include "terminal.h"
#include "gdbthread.h"
#include "top.h"
#include "terminal.h"
#include "gdbthread.h"
#include "top.h"
-#include "job-control.h"
-#include "filestuff.h"
+#include "
gdbsupport/
job-control.h"
+#include "
gdbsupport/
filestuff.h"
#include "nat/fork-inferior.h"
#include "nat/fork-inferior.h"
-#include "
common
/common-inferior.h"
+#include "
gdbsupport
/common-inferior.h"
/* The exec-wrapper, if any, that will be used when starting the
inferior. */
static char *exec_wrapper = NULL;
/* The exec-wrapper, if any, that will be used when starting the
inferior. */
static char *exec_wrapper = NULL;
-/* See
common
/common-inferior.h. */
+/* See
gdbsupport
/common-inferior.h. */
const char *
get_exec_wrapper ()
const char *
get_exec_wrapper ()
@@
-78,17
+78,12
@@
prefork_hook (const char *args)
void
postfork_hook (pid_t pid)
{
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);
/* Needed for wait_for_inferior stuff. */
inferior_appeared (inf, pid);
/* Needed for wait_for_inferior stuff. */
- inferior_ptid = p
id_to_ptid
(pid);
+ inferior_ptid = p
tid_t
(pid);
gdb_assert (saved_ui != NULL);
current_ui = saved_ui;
gdb_assert (saved_ui != NULL);
current_ui = saved_ui;