mirror of
https://github.com/bminor/binutils-gdb.git
synced 2025-12-27 01:28:46 +00:00
Wed Jun 15 17:36:07 1994 Stan Shebs (shebs@andros.cygnus.com)
* mpw-make.in (.c.o, .gc.o): Prefix segment names with gdb_.
(top.c.o, annotate.c.o): Add build rules.
* macgdb.r (SysTypes.r): Include.
('vers'): New resource, version info.
(mFile, mEdit, mDebug): Enable all menu items.
(mDebug): Add key equivalents for continue, step, next.
(wConsole): Add zoom and close boxes to window.
* mac-xdep.c (new_console_window): New function, code taken from
mac_init.
(mac_command_loop): Use GetCaretTime for wait interval, call
do_idle on null events.
(do_idle): New function.
(zoom_window): Implement zooming.
(v_scroll_proc): New function, handles vertical scrolling.
(activate_window): Do activation of console window.
(do_menu_command): Implement items of file, edit, and debug menus.
(do_keyboard_command): Fix command extraction.
(adjust_console_sizes, adjust_console_text): New functions.
(hacked_fprintf, hacked_vfprintf, hacked_fputs, hacked_fputc,
hacked_putc): Don't call draw_console.
* ser-mac.c (mac_open): Add an error message for invalid ports.
(first_mac_write): New global.
(mac_write): Use first_mac_write to sleep on first several writes.
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
/* Remote serial interface for local (hardwired) serial ports for Macintosh.
|
||||
Copyright 1994 Free Software Foundation, Inc.
|
||||
Contributed by Cygnus Support. Written by Stan Shebs.
|
||||
|
||||
This file is part of GDB.
|
||||
|
||||
@@ -92,6 +93,7 @@ mac_open (scb, name)
|
||||
}
|
||||
else
|
||||
{
|
||||
error ("You must specify a port. Choices are `modem' or `printer'.");
|
||||
errno = ENOENT;
|
||||
return (-1);
|
||||
}
|
||||
@@ -244,6 +246,8 @@ mac_set_baud_rate (scb, rate)
|
||||
return 0;
|
||||
}
|
||||
|
||||
int first_mac_write = 0;
|
||||
|
||||
static int
|
||||
mac_write (scb, str, len)
|
||||
serial_t scb;
|
||||
@@ -253,6 +257,10 @@ mac_write (scb, str, len)
|
||||
OSErr err;
|
||||
IOParam pb;
|
||||
|
||||
if (first_mac_write++ < 8)
|
||||
{
|
||||
sleep (1);
|
||||
}
|
||||
pb.ioRefNum = output_refnum;
|
||||
pb.ioBuffer = (Ptr) str;
|
||||
pb.ioReqCount = len;
|
||||
|
||||
Reference in New Issue
Block a user