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.
This commit is contained in:
parent
edfb9ffd1f
commit
a6b26c4431
7 changed files with 357 additions and 40 deletions
10
gdb/utils.c
10
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)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue