darling-gdb/gdb/macgdb.r
Stan Shebs a6b26c4431 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.
1994-05-13 00:31:31 +00:00

154 lines
2.5 KiB
R

/* Resource file for MacGDB. */
#include "Types.r"
#include "mac-defs.h"
resource 'MBAR' (128) {
{ mApple, mFile, mEdit, mDebug };
};
resource 'MENU' (mApple, preload) {
mApple,
textMenuProc,
0x7FFFFFFD,
enabled,
apple,
{
"About...", noIcon, noKey, noMark, plain,
"-", noIcon, noKey, noMark, plain
}
};
resource 'MENU' (mFile, preload) {
mFile,
textMenuProc,
0xFFF,
enabled,
"File",
{
"New", noIcon, "N", noMark, plain,
"Open...", noIcon, "O", noMark, plain,
"-", noIcon, noKey, noMark, plain,
"Quit", noIcon, "Q", noMark, plain
}
};
resource 'MENU' (mEdit, preload) {
mEdit,
textMenuProc,
0x3400,
enabled,
"Edit",
{
"Undo", noIcon, "Z", noMark, plain,
"-", noIcon, noKey, noMark, plain,
"Cut", noIcon, "X", noMark, plain,
"Copy", noIcon, "C", noMark, plain,
"Paste", noIcon, "V", noMark, plain,
"Clear", noIcon, noKey, noMark, plain
}
};
resource 'MENU' (mDebug, preload) {
mDebug,
textMenuProc,
0x7FFFFFDD,
enabled,
"Debug",
{
"Target", noIcon, "T", noMark, plain,
"-", noIcon, noKey, noMark, plain,
"Run", noIcon, "R", noMark, plain,
"Continue", noIcon, noKey, noMark, plain,
"Step", noIcon, noKey, noMark, plain,
"Next", noIcon, noKey, noMark, plain
}
};
resource 'ALRT' (128) {
{40, 40, 229, 363},
128,
{ /* array: 4 elements */
/* [1] */
OK, visible, sound1,
/* [2] */
OK, visible, sound1,
/* [3] */
OK, visible, sound1,
/* [4] */
OK, visible, sound1
}
};
resource 'DITL' (128) {
{ /* array DITLarray: 4 elements */
/* [1] */
{164, 115, 184, 185},
Button {
enabled,
"OK"
},
/* [2] */
{5, 10, 43, 290},
StaticText {
disabled,
"MacGDB"
},
/* [3] */
{76, 3, 154, 301},
StaticText {
disabled,
"GNU Debugger"
"\nCopyright © 1994 Free Software Foundation Inc.\n"
"Written by Stan Shebs."
},
/* [4] */
{53, 82, 71, 227},
StaticText {
disabled,
"version 4.12.1"
}
}
};
resource 'WIND' (wConsole, preload, purgeable) {
{40, 40, 310, 572},
documentProc,
visible,
noGoAway,
0x0,
"GDB Console"
};
resource 'SIZE' (-1) {
reserved,
acceptSuspendResumeEvents,
reserved,
canBackground,
multiFinderAware,
backgroundAndForeground,
dontGetFrontClicks,
ignoreChildDiedEvents,
not32BitCompatible,
isHighLevelEventAware,
localAndRemoteHLEvents,
notStationeryAware,
dontUseTextEditServices,
reserved,
reserved,
reserved,
4000*1024,
4000*1024
};
resource 'DLOG' (128) {
{40, 40, 240, 280},
documentProc,
visible,
goAway,
0x0,
128,
""
};