* remote-udi.c (udi_close, udi_detach, udi_kill): Add comments.

* infptrace.c (kill_inferior): Add comments.
	* main.c (quit_command): Call target_close after we kill or
	detach.
	* remote-udi.c (udi_close): Don't error() if QUITTING.
This commit is contained in:
Jim Kingdon 1994-01-28 21:58:12 +00:00
parent 39f0852416
commit 97cc042806
2 changed files with 14 additions and 3 deletions

View File

@ -1,13 +1,19 @@
Fri Jan 28 15:40:33 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
* remote-bug.c (bug_ops): Remove spurious newline from docstring.
* config/m68k/tm-monitor.h: Changes to bring this into accordance
with the old tm-m68k-em.h:
(GDBINIT_FILENAME, DEFAULT_PROMPT): Remove.
(HAVE_68881): Don't undefine; this #define is obsolete.
(HAVE_68881): Don't undefine; HAVE_68881 is obsolete.
(REGISTER_NAMES): Don't muck with it; what tm-m68k.h has is fine.
Add FIXME regarding GET_LONGJMP_TARGET.
* remote-udi.c (udi_close, udi_detach, udi_kill): Add comments.
* infptrace.c (kill_inferior): Add comments.
* main.c (quit_command): Call target_close after we kill or
detach.
* remote-udi.c (udi_close): Don't error() if QUITTING.
Fri Jan 28 11:55:52 1994 Rob Savoye (rob@darkstar.cygnus.com)

View File

@ -303,10 +303,15 @@ udi_close (quitting) /*FIXME: how is quitting used */
return;
/* We should never get here if there isn't something valid in
udi_session_id. */
udi_session_id. */
if (UDIDisconnect (udi_session_id, UDITerminateSession))
error ("UDIDisconnect() failed in udi_close");
{
if (quitting)
warning ("UDIDisconnect() failed in udi_close");
else
error ("UDIDisconnect() failed in udi_close");
}
/* Do not try to close udi_session_id again, later in the program. */
udi_session_id = -1;