diff options
author | Stan Shebs <shebs@codesourcery.com> | 1994-05-13 00:31:31 +0000 |
---|---|---|
committer | Stan Shebs <shebs@codesourcery.com> | 1994-05-13 00:31:31 +0000 |
commit | a6b26c4431ede17adf8a07f61a43c01b92b8f83f (patch) | |
tree | 42579e6fdb96cb16812b39602fd3cc67b538e984 /gdb/config/m68k/xm-mpw.h | |
parent | edfb9ffd1f5f733233b926d7121d31d6fb4dde62 (diff) | |
download | gdb-a6b26c4431ede17adf8a07f61a43c01b92b8f83f.zip gdb-a6b26c4431ede17adf8a07f61a43c01b92b8f83f.tar.gz 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/config/m68k/xm-mpw.h')
-rw-r--r-- | gdb/config/m68k/xm-mpw.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/gdb/config/m68k/xm-mpw.h b/gdb/config/m68k/xm-mpw.h index a072db4..653b6ba 100644 --- a/gdb/config/m68k/xm-mpw.h +++ b/gdb/config/m68k/xm-mpw.h @@ -61,6 +61,15 @@ void mpw_abort (); #define fseek mpw_fseek #define abort mpw_abort +#define printf hacked_printf +#define fprintf hacked_fprintf +#define vprintf hacked_vfprintf +#define fputs hacked_fputs +#define fputc hacked_fputc +#undef putc +#define putc hacked_putc +#define fflush hacked_fflush + /* Define as macros so as to mask the previous enum. */ #ifndef BFD_TRUE_FALSE @@ -112,3 +121,7 @@ char *strdup (char *s1); #ifndef R_OK #define R_OK 4 #endif + +extern int StandAlone; + +extern int mac_app; |