aboutsummaryrefslogtreecommitdiff
path: root/gdb/defs.h
diff options
context:
space:
mode:
authorDoug Evans <dje@google.com>2011-12-14 20:53:57 +0000
committerDoug Evans <dje@google.com>2011-12-14 20:53:57 +0000
commit0b6cb71e500807ed48bc5317bb7ec03b073fc0a0 (patch)
tree876bb7834ffd9b4d1c81f8b97feb39731a6a6664 /gdb/defs.h
parentafaabefa90aba4f0e37e7ed865ccd64b66dfa354 (diff)
downloadgdb-0b6cb71e500807ed48bc5317bb7ec03b073fc0a0.zip
gdb-0b6cb71e500807ed48bc5317bb7ec03b073fc0a0.tar.gz
gdb-0b6cb71e500807ed48bc5317bb7ec03b073fc0a0.tar.bz2
* defs.h (wait_to_die_with_timeout): Declare.
* utils.c: #include "gdb_wait.h". (sigalrm_handler, wait_to_die_with_timeout): New functions. * ser-pipe.c: Don't #include "gdb_wait.h". (pipe_close): Give child a chance to die on its own after closing its stdin before SIGTERM'ing it.
Diffstat (limited to 'gdb/defs.h')
-rw-r--r--gdb/defs.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/gdb/defs.h b/gdb/defs.h
index 040d9c9..7f8a330 100644
--- a/gdb/defs.h
+++ b/gdb/defs.h
@@ -440,6 +440,10 @@ extern struct cleanup *make_bpstat_clear_actions_cleanup (void);
extern int producer_is_gcc_ge_4 (const char *producer);
+#ifdef HAVE_WAITPID
+extern pid_t wait_to_die_with_timeout (pid_t pid, int *status, int timeout);
+#endif
+
/* Annotation stuff. */