diff options
author | John Gilmore <gnu@cygnus> | 1992-09-22 05:23:57 +0000 |
---|---|---|
committer | John Gilmore <gnu@cygnus> | 1992-09-22 05:23:57 +0000 |
commit | b28d3617236dc9959a7b21ddd4437adcb0468226 (patch) | |
tree | 40f2d2807b88904036bb87cc362084fab7687afe /gdb/hppahpux-xdep.c | |
parent | 6b50c5c2428aa5a204cd4a28028f3853620fe336 (diff) | |
download | gdb-b28d3617236dc9959a7b21ddd4437adcb0468226.zip gdb-b28d3617236dc9959a7b21ddd4437adcb0468226.tar.gz gdb-b28d3617236dc9959a7b21ddd4437adcb0468226.tar.bz2 |
Remove kill_inferior_fast, in favor of target_kill, which goes
through the target vector.
* inferior.h (kill_inferior_fast): remove declaration.
* main.c (disconnect): call quit_cover using catch_errors rather
than calling kill_inferior_fast directly. New way goes through
the target vector, handles attached processes, and writes
command history if appropriate.
(quit_cover): new function, wrapper for quit_command.
* convex-xdep.c, go32-xdep.c, hppabsd-xdep.c, hppahpux-xdep.c,
infptrace.c, procfs.c: Removed all instances of kill_inferior_fast,
inlining them into the local kill_inferior when needed.
Diffstat (limited to 'gdb/hppahpux-xdep.c')
-rw-r--r-- | gdb/hppahpux-xdep.c | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/gdb/hppahpux-xdep.c b/gdb/hppahpux-xdep.c index 0e21a14..8c8c33f 100644 --- a/gdb/hppahpux-xdep.c +++ b/gdb/hppahpux-xdep.c @@ -68,21 +68,13 @@ call_ptrace (request, pid, addr, data) #define ptrace call_ptrace #endif -/* This is used when GDB is exiting. It gives less chance of error.*/ - void -kill_inferior_fast () +kill_inferior () { if (inferior_pid == 0) return; ptrace (PT_EXIT, inferior_pid, (PTRACE_ARG3_TYPE) 0, 0, 0); /* PT_EXIT = PT_KILL ? */ wait ((int *)0); -} - -void -kill_inferior () -{ - kill_inferior_fast (); target_mourn_inferior (); } |