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/procfs.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/procfs.c')
-rw-r--r-- | gdb/procfs.c | 33 |
1 files changed, 0 insertions, 33 deletions
diff --git a/gdb/procfs.c b/gdb/procfs.c index 0365c65..b39402e 100644 --- a/gdb/procfs.c +++ b/gdb/procfs.c @@ -1033,39 +1033,6 @@ ptrace (request, pid, arg3, arg4) GLOBAL FUNCTION - kill_inferior_fast -- kill inferior while gdb is exiting - -SYNOPSIS - - void kill_inferior_fast (void) - -DESCRIPTION - - This is used when GDB is exiting. It gives less chance of error. - -NOTES - - Don't attempt to kill attached inferiors since we may be called - when gdb is in the process of aborting, and killing the attached - inferior may be very anti-social. This is particularly true if we - were attached just so we could use the /proc facilities to get - detailed information about it's status. - -*/ - -void -kill_inferior_fast () -{ - if (inferior_pid != 0 && !attach_flag) - { - unconditionally_kill_inferior (); - } -} - -/* - -GLOBAL FUNCTION - kill_inferior - kill any currently inferior SYNOPSIS |