From 58c0b523fe57051a0580dbbe6f479da608ade1da Mon Sep 17 00:00:00 2001 From: Stan Shebs Date: Thu, 16 Jun 1994 01:03:01 +0000 Subject: 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. --- gdb/ser-mac.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'gdb/ser-mac.c') diff --git a/gdb/ser-mac.c b/gdb/ser-mac.c index f8a2291..3be1fb3 100644 --- a/gdb/ser-mac.c +++ b/gdb/ser-mac.c @@ -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; -- cgit v1.1