mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-12-22 16:53:31 +08:00
b8ec8d4ab0
(SiowGDB): New target, GDB using SIOW library. (init-new.c): New target, attempt to generate init.c from sources. (main.c.o, top.c.o): Put each in its own segment. * main.c (main) [MPW]: Always call mac_init. * utils.c (query) [MPW]: Always return "yes" if in MacGDB, output an extra newline otherwise. * mac-xdep.c: More comments in various places, remove junk. (mac_init): Add tests for MPW and SIOW. (use_wne, has_color_qd): Renamed. (use_color_qd): New variable. (grow_window): Only do console resizing to console window, call resize_console_window. (zoom_window): Call resize_console_window. (resize_console_window, scroll_text): New functions. (adjust_console_sizes): Always align viewrect to even multiples of text lines. (adjust_console_text): Always scroll by whole lines. (hacked_vfprintf, hacked_puts, hacked_fputc, hacked_putc): Force a recalculation of scroll positions if a newline was output. (hacked_fflush): Similarly, for flushing. (hacked_fgetc): New function, aborts if called in MacGDB. * ser-mac.c (mac_readchar): Rename starttime to start_time, remove debugging printf. (mac_write): Sleep on first 4 writes. (sec_sleep): New function, works like standard sleep. * macgdb.r: Adjust positioning and contents of About box. Set minimum size to 2000K, preferred size to 5000K. * config/m68k/xm-mpw.h (fgetc): Define as a macro.
149 lines
2.4 KiB
R
149 lines
2.4 KiB
R
/* Resource file for MacGDB. */
|
|
|
|
#include "SysTypes.r"
|
|
#include "Types.r"
|
|
|
|
#include "mac-defs.h"
|
|
|
|
resource 'vers' (1) {
|
|
0x02, 0x00, release, 0x00,
|
|
verUS,
|
|
"4.12.3",
|
|
"4.12.3, Copyright \251 1994 Free Software Foundation, Inc."
|
|
};
|
|
|
|
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,
|
|
allEnabled,
|
|
enabled,
|
|
"File",
|
|
{
|
|
"New", noIcon, noKey, noMark, plain,
|
|
"Open...", noIcon, "O", noMark, plain,
|
|
"-", noIcon, noKey, noMark, plain,
|
|
"Quit", noIcon, "Q", noMark, plain
|
|
}
|
|
};
|
|
|
|
resource 'MENU' (mEdit, preload) {
|
|
mEdit,
|
|
textMenuProc,
|
|
allEnabled,
|
|
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,
|
|
allEnabled,
|
|
enabled,
|
|
"Debug",
|
|
{
|
|
"Target", noIcon, "T", noMark, plain,
|
|
"-", noIcon, noKey, noMark, plain,
|
|
"Run", noIcon, "R", noMark, plain,
|
|
"Continue", noIcon, "K", noMark, plain,
|
|
"Step", noIcon, "S", noMark, plain,
|
|
"Next", noIcon, "N", noMark, plain
|
|
}
|
|
};
|
|
|
|
resource 'ALRT' (128) {
|
|
{40, 40, 180, 420},
|
|
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: 2 elements */
|
|
/* [1] */
|
|
{110, 150, 128, 200},
|
|
Button {
|
|
enabled,
|
|
"OK"
|
|
},
|
|
/* [2] */
|
|
{10, 10, 100, 370},
|
|
StaticText {
|
|
disabled,
|
|
"GDB 4.12.3\n"
|
|
"Copyright © 1994 Free Software Foundation, Inc.\n"
|
|
},
|
|
}
|
|
};
|
|
|
|
resource 'WIND' (wConsole, preload, purgeable) {
|
|
{40, 40, 310, 572},
|
|
zoomDocProc,
|
|
visible,
|
|
goAway,
|
|
0x0,
|
|
"GDB Console"
|
|
};
|
|
|
|
resource 'SIZE' (-1) {
|
|
reserved,
|
|
acceptSuspendResumeEvents,
|
|
reserved,
|
|
canBackground,
|
|
multiFinderAware,
|
|
backgroundAndForeground,
|
|
dontGetFrontClicks,
|
|
ignoreChildDiedEvents,
|
|
not32BitCompatible,
|
|
isHighLevelEventAware,
|
|
localAndRemoteHLEvents,
|
|
notStationeryAware,
|
|
dontUseTextEditServices,
|
|
reserved,
|
|
reserved,
|
|
reserved,
|
|
5000*1024,
|
|
2000*1024
|
|
};
|
|
|
|
resource 'DLOG' (128) {
|
|
{40, 40, 240, 280},
|
|
documentProc,
|
|
visible,
|
|
goAway,
|
|
0x0,
|
|
128,
|
|
""
|
|
};
|