aboutsummaryrefslogtreecommitdiff
path: root/gdb/convex-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/convex-xdep.c
parent6b50c5c2428aa5a204cd4a28028f3853620fe336 (diff)
downloadgdb-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/convex-xdep.c')
-rw-r--r--gdb/convex-xdep.c14
1 files changed, 2 insertions, 12 deletions
diff --git a/gdb/convex-xdep.c b/gdb/convex-xdep.c
index ba4da80..8282b30 100644
--- a/gdb/convex-xdep.c
+++ b/gdb/convex-xdep.c
@@ -1,5 +1,5 @@
-/* Convex stuff for GDB.
- Copyright (C) 1990-1991 Free Software Foundation, Inc.
+/* Convex host-dependent code for GDB.
+ Copyright 1990, 1991, 1992 Free Software Foundation, Inc.
This file is part of GDB.
@@ -383,16 +383,6 @@ kill_inferior ()
target_mourn_inferior ();
}
-/* This is used when GDB is exiting. It gives less chance of error.*/
-
-kill_inferior_fast ()
-{
- if (inferior_pid == 0)
- return;
- ioctl (inferior_fd, PIXTERMINATE, 0);
- wait (0);
-}
-
/* Read vector register REG, and return a pointer to the value. */
static long *