aboutsummaryrefslogtreecommitdiff
path: root/gdb/ser-mac.c
diff options
context:
space:
mode:
authorStan Shebs <shebs@codesourcery.com>1994-06-16 01:03:01 +0000
committerStan Shebs <shebs@codesourcery.com>1994-06-16 01:03:01 +0000
commit58c0b523fe57051a0580dbbe6f479da608ade1da (patch)
tree8580635a8e6712576aa406390501c7bb9ed16db4 /gdb/ser-mac.c
parent675ad6dc6889dfd69f98a7393d52fdac3796f57e (diff)
downloadgdb-58c0b523fe57051a0580dbbe6f479da608ade1da.zip
gdb-58c0b523fe57051a0580dbbe6f479da608ade1da.tar.gz
gdb-58c0b523fe57051a0580dbbe6f479da608ade1da.tar.bz2
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.
Diffstat (limited to 'gdb/ser-mac.c')
-rw-r--r--gdb/ser-mac.c8
1 files changed, 8 insertions, 0 deletions
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;