aboutsummaryrefslogtreecommitdiff
path: root/gdb/utils.c
diff options
context:
space:
mode:
authorStan Shebs <shebs@codesourcery.com>1994-05-13 00:31:31 +0000
committerStan Shebs <shebs@codesourcery.com>1994-05-13 00:31:31 +0000
commita6b26c4431ede17adf8a07f61a43c01b92b8f83f (patch)
tree42579e6fdb96cb16812b39602fd3cc67b538e984 /gdb/utils.c
parentedfb9ffd1f5f733233b926d7121d31d6fb4dde62 (diff)
downloadfsf-binutils-gdb-a6b26c4431ede17adf8a07f61a43c01b92b8f83f.zip
fsf-binutils-gdb-a6b26c4431ede17adf8a07f61a43c01b92b8f83f.tar.gz
fsf-binutils-gdb-a6b26c4431ede17adf8a07f61a43c01b92b8f83f.tar.bz2
Changes for MacGDB:
Thu May 12 17:04:58 1994 Stan Shebs (shebs@andros.cygnus.com) * mpw-make.in (INCLUDE_CFLAGS): Add readline source dir. (READLINE_CFLAGS, READLINE_SRC, READLINE_DIR): Uncomment. (TSOBS): Don't compile inflow.c. (all, install): Add MacGDB. * main.c (main): Do Mac-specific init and command loop if a standalone app, skip full option help message if compiling with MPW C. (gdb_readline): If MPW, add a newline after the (gdb) prompt. * utils.c (_initialize_utils): If MPW, don't try to use termcap to compute the window size. * config/m68k/xm-mpw.h (printf, fprintf, fputs, fputc, putc, fflush): Define as macros that expand into hacked_... versions. (StandAlone, mac_app): Declare. * macgdb.r (SIZE): Set the default partition to 4000K. * mac-xdep.c (readline.h, history.h): Include. (terminal.h): Don't include. (mac_app): Define. (gdb_has_a_terminal): Define Mac-specific version. (do_keyboard_command): Simplify search for command string. (readline): Define as gdb_readline. Add other history/readline stubs to make main gdb link. (hacked_fprintf, hacked_printf, hacked_vfprintf, hacked_fputs, hacked_fputc, hacked_fflush): New functions, intercept output to stdout and stderr, send to console window.
Diffstat (limited to 'gdb/utils.c')
-rw-r--r--gdb/utils.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/gdb/utils.c b/gdb/utils.c
index 33501ba..0640cac 100644
--- a/gdb/utils.c
+++ b/gdb/utils.c
@@ -251,7 +251,7 @@ warning (va_alist)
}
/* Start the printing of an error message. Way to use this is to call
- this, output the error message, and then call
+ this, output the error message (use filtered output), and then call
return_to_top_level (RETURN_ERROR). error() provides a convenient way to
do this for the special case that the error message can be formatted with
a single printf call, but this is more general. */
@@ -1733,6 +1733,11 @@ _initialize_utils ()
#else
lines_per_page = 24;
chars_per_line = 80;
+/* start-sanitize-mpw */
+#ifndef MPW
+ /* No termcap under MPW, although might be cool to do something
+ by looking at worksheet or console window sizes. */
+/* end-sanitize-mpw */
/* Initialize the screen height and width from termcap. */
{
char *termtype = getenv ("TERM");
@@ -1767,6 +1772,9 @@ _initialize_utils ()
}
}
}
+/* start-sanitize-mpw */
+#endif /* MPW */
+/* end-sanitize-mpw */
#if defined(SIGWINCH) && defined(SIGWINCH_HANDLER)