aboutsummaryrefslogtreecommitdiff
path: root/gdb/hppabsd-xdep.c
diff options
context:
space:
mode:
authorJohn Gilmore <gnu@cygnus>1992-09-22 05:23:57 +0000
committerJohn Gilmore <gnu@cygnus>1992-09-22 05:23:57 +0000
commitb28d3617236dc9959a7b21ddd4437adcb0468226 (patch)
tree40f2d2807b88904036bb87cc362084fab7687afe /gdb/hppabsd-xdep.c
parent6b50c5c2428aa5a204cd4a28028f3853620fe336 (diff)
downloadfsf-binutils-gdb-b28d3617236dc9959a7b21ddd4437adcb0468226.zip
fsf-binutils-gdb-b28d3617236dc9959a7b21ddd4437adcb0468226.tar.gz
fsf-binutils-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/hppabsd-xdep.c')
-rw-r--r--gdb/hppabsd-xdep.c10
1 files changed, 1 insertions, 9 deletions
diff --git a/gdb/hppabsd-xdep.c b/gdb/hppabsd-xdep.c
index 7e9d4f4..bec14c4 100644
--- a/gdb/hppabsd-xdep.c
+++ b/gdb/hppabsd-xdep.c
@@ -72,21 +72,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_KILL, inferior_pid, (PTRACE_ARG3_TYPE) 0, 0);
wait ((int *)0);
-}
-
-void
-kill_inferior ()
-{
- kill_inferior_fast ();
target_mourn_inferior ();
}