From 17d059d413c79a6e4b4bf0cd4524287005b16464 Mon Sep 17 00:00:00 2001 From: Jim Kingdon Date: Fri, 7 Jan 1994 19:45:45 +0000 Subject: [PATCH] * utils.c (print_sys_errmsg): Call gdb_flush (gdb_stdout) before printing to gdb_stderr. * remote-udi.c (udi_kill): Don't close the connection, just set inferior_pid to zero. (udi_mourn): Call remove_breakpoints. * remote-udi.c: Remove obsolete need_artificial_traps comment. --- gdb/ChangeLog | 9 +++++++++ gdb/remote-udi.c | 17 +++++++++++------ 2 files changed, 20 insertions(+), 6 deletions(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 49d1201d1f3..39741967ac0 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,14 @@ Fri Jan 7 12:55:25 1994 Jim Kingdon (kingdon@lioth.cygnus.com) + * utils.c (print_sys_errmsg): Call gdb_flush (gdb_stdout) before + printing to gdb_stderr. + + * remote-udi.c (udi_kill): Don't close the connection, just set + inferior_pid to zero. + (udi_mourn): Call remove_breakpoints. + + * remote-udi.c: Remove obsolete need_artificial_traps comment. + * i386b-nat.c (sregmap): If sEAX, etc., not defined, use tEAX, etc. Thu Jan 6 07:17:53 1994 Jim Kingdon (kingdon@deneb.cygnus.com) diff --git a/gdb/remote-udi.c b/gdb/remote-udi.c index afe9dd4be8b..1c6beceb34f 100644 --- a/gdb/remote-udi.c +++ b/gdb/remote-udi.c @@ -115,10 +115,6 @@ extern char dfe_errmsg[]; /* error string */ /* malloc'd name of the program on the remote system. */ static char *prog_name = NULL; -/* Number of SIGTRAPs we need to simulate. That is, the next - NEED_ARTIFICIAL_TRAP calls to udi_wait should just return - SIGTRAP without actually waiting for anything. */ - /* This is called not only when we first attach, but also when the user types "run" after having attached. */ @@ -180,6 +176,9 @@ udi_mourn() to work between "target udi" and "run", so why not now? */ pop_target (); /* Pop back to no-child state */ #endif + /* But if we're going to want to run it again, we better remove the + breakpoints... */ + remove_breakpoints (); generic_mourn_inferior (); } @@ -993,10 +992,16 @@ just invoke udi_close, which seems to get things right. if (from_tty) printf_unfiltered("Target has been stopped."); -#else +#endif /* 0 */ +#if 0 udi_close(0); -#endif pop_target(); +#endif /* 0 */ + + /* Keep the target around, e.g. so "run" can do the right thing when + we are already debugging something. */ + + inferior_pid = 0; } /* -- 2.30.2