diff options
author | Joel Brobecker <brobecker@gnat.com> | 2001-09-27 13:31:45 +0000 |
---|---|---|
committer | Joel Brobecker <brobecker@gnat.com> | 2001-09-27 13:31:45 +0000 |
commit | d3340a536fee8077df2c89dd2dc4066c7969cb4a (patch) | |
tree | e945261fec756046be654903d4e59a10b29782d3 /gdb/infttrace.c | |
parent | 2c20dfb248ecdc877b275de75cf7f6704864c4de (diff) | |
download | fsf-binutils-gdb-d3340a536fee8077df2c89dd2dc4066c7969cb4a.zip fsf-binutils-gdb-d3340a536fee8077df2c89dd2dc4066c7969cb4a.tar.gz fsf-binutils-gdb-d3340a536fee8077df2c89dd2dc4066c7969cb4a.tar.bz2 |
kill_inferior: Issue a TT_PROC_EXIT request rather than a TT_PROC_STOP
request to kill the inferior and its child processes. Otherwise, the
inferior is not killed on HPUX 11.0. Removed the code that detaches the
child processes since we just killed them.
Diffstat (limited to 'gdb/infttrace.c')
-rw-r--r-- | gdb/infttrace.c | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/gdb/infttrace.c b/gdb/infttrace.c index 00cdda2..a920ead 100644 --- a/gdb/infttrace.c +++ b/gdb/infttrace.c @@ -3853,27 +3853,18 @@ kill_inferior (void) if (t->am_pseudo && (t->pid != PIDGET (inferior_ptid))) { - /* TT_PROC_STOP doesn't require a subsequent ttrace_wait, as it - * generates no event. - */ - call_ttrace (TT_PROC_STOP, + call_ttrace (TT_PROC_EXIT, t->pid, TT_NIL, TT_NIL, TT_NIL); - - call_ttrace (TT_PROC_DETACH, - t->pid, - TT_NIL, - (TTRACE_ARG_TYPE) TARGET_SIGNAL_0, - TT_NIL); } t = t->next; } xfree (paranoia); - call_ttrace (TT_PROC_STOP, + call_ttrace (TT_PROC_EXIT, PIDGET (inferior_ptid), TT_NIL, TT_NIL, |