aboutsummaryrefslogtreecommitdiff
path: root/gdb/top.c
diff options
context:
space:
mode:
authorStu Grossman <grossman@cygnus>1997-04-19 01:42:34 +0000
committerStu Grossman <grossman@cygnus>1997-04-19 01:42:34 +0000
commit4ce7ba51882e901d38238c6f3fd552d72972cca1 (patch)
tree733787a3d7bec048906795a536353d104471ee6d /gdb/top.c
parente65bd1d84394b9739192470f05f742cc2aa196f7 (diff)
downloadgdb-4ce7ba51882e901d38238c6f3fd552d72972cca1.zip
gdb-4ce7ba51882e901d38238c6f3fd552d72972cca1.tar.gz
gdb-4ce7ba51882e901d38238c6f3fd552d72972cca1.tar.bz2
* Makefile.in (SUBDIRS): Add mswin so that make cleanup cleans up
that directory. * defs.h utils.c (error warning): Make message be const. * main.c (fputs_unfiltered): Only send gdb_stdout and gdb_stderr to hook. Otherwise send it to fputs. * monitor.c monitor.h (monitor_get_dev_name): New function. Does the obvious. * remote-e7000.c: Remove debugify stuff. Change printf, fprintf to _filtered forms to make output appear in GUIs. Replace all uses of SERIAL_READCHAR with readchar, which has better error checking. * (e7000_parse_device): Add prototype. * (readchar): Improve doc. Handle random serial errors. * (expect): Disable notice_quit code. It's busted. Remove serial error handling (it's now handled in readchar). Remove remote_debug echoing. That's handled in readchar as well. * (e7000_parse_device): Remove serial_flag arg. It's not necessary. * (e7000_open): Split into two pieces. Second part is e7000_start_remote, and is error protected. Now, when we connect to the target, we setup the initial frame and registers so that the user gets an immediate indication of where the target is. * (gch): Remove debug output. That's handled by readchar. * (e7000_read_inferior_memory): Handle errors better. * (_initialize_remote_e7000): Get rid of `<xxx>' things from command names. They show up when doing completion and confuse things horribly. * ser-e7kpc.c: Remove the last seven months of brain damage. Get rid of the DLL's since we can access the device directly from Win32s and Win95. Get rid of debugify crud. * serial.c: Remove debugify cruft. * (serial_logchar serial_log_command serial_write serial_readchar serial_send_break serial_close): Merge common functionality into serial_logchar. Clean up rest of routines. * sparclet-rom.c: Disembowel. Leave only download routine. Download routine now switches to remote target automatically. * top.c (disconnect): Only define if SIGHUP is defined. Cleans up MSVC/Win32 problem. * utils.c (gdb_flush): Don't call hook unless it's for gdb_stdout or gdb_stderr. * config/sh/tm-sh.h: Define TARGET_SH for WinGDB. * config/sparc/tm-sparclet.h: Remove override for prompt.
Diffstat (limited to 'gdb/top.c')
-rw-r--r--gdb/top.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/gdb/top.c b/gdb/top.c
index de2069a..736b966 100644
--- a/gdb/top.c
+++ b/gdb/top.c
@@ -67,8 +67,6 @@ static void init_signals PARAMS ((void));
static void stop_sig PARAMS ((int));
#endif
-static void disconnect PARAMS ((int));
-
static char * line_completion_function PARAMS ((char *, int, char *, int));
static char * readline_line_completion_function PARAMS ((char *, int));
@@ -155,9 +153,11 @@ static void complete_command PARAMS ((char *, int));
static void do_nothing PARAMS ((int));
+#ifdef SIGHUP
static int quit_cover PARAMS ((char *));
static void disconnect PARAMS ((int));
+#endif
static void source_cleanup PARAMS ((FILE *));
@@ -571,6 +571,7 @@ catch_errors (func, args, errstring, mask)
/* Handler for SIGHUP. */
+#ifdef SIGHUP
static void
disconnect (signo)
int signo;
@@ -592,6 +593,7 @@ char *s;
quit_command((char *)0, 0);
return 0;
}
+#endif /* defined SIGHUP */
/* Line number we are currently in in a file which is being sourced. */
static int source_line_number;
@@ -1929,8 +1931,10 @@ init_signals ()
a handler for SIGQUIT, when we call exec it will set the signal
to SIG_DFL for us. */
signal (SIGQUIT, do_nothing);
+#ifdef SIGHUP
if (signal (SIGHUP, do_nothing) != SIG_IGN)
signal (SIGHUP, disconnect);
+#endif
signal (SIGFPE, float_handler);
#if defined(SIGWINCH) && defined(SIGWINCH_HANDLER)