From e70a10c35a577953dc0bda1154301bf57bfe5c58 Mon Sep 17 00:00:00 2001 From: Stan Shebs Date: Fri, 17 Mar 1995 23:21:12 +0000 Subject: * mpw-config.in (i386-unknown-go32): Change from aout. (sh-hitachi-hms): New target. * mpw-make.in (BISON): Use byacc instead of bison. (VERSION): Bump to 4.14.1. (*-pinsn.*): Remove mentions everywhere. (all): Don't build MacGDB. (gdb, SiowGDB): Depend on Version.r. (Version.r): Generate from version info. * main.c (main): Pass program name to START_PROGRESS, END_PROGRESS. (main) [MPW]: Remove debugging hook. * mac-xdep.c (debug_openp): New flag. (mac_init): Set flag if env variable defined. * ser-mac.c (mac_open): Clarify error message. (mac_readchar): Call PROGRESS while looping. (mac_write): Call sleep instead of sec_sleep. (sec_sleep): Remove. * source.c (openp) [MPW]: Only print debugging info if debugging. * utils.c (query) [MPW]: Clarify that behavior is a bug. --- gdb/ser-mac.c | 19 +++---------------- 1 file changed, 3 insertions(+), 16 deletions(-) (limited to 'gdb/ser-mac.c') diff --git a/gdb/ser-mac.c b/gdb/ser-mac.c index a8db83f..98a503c 100644 --- a/gdb/ser-mac.c +++ b/gdb/ser-mac.c @@ -95,7 +95,7 @@ mac_open (scb, name) } else { - error ("You must specify a port. Choices are `modem' or `printer'."); + error ("You must specify a valid serial port name; your choices are `modem' or `printer'."); errno = ENOENT; return (-1); } @@ -195,6 +195,7 @@ mac_readchar (scb, timeout) if (now > start_time + timeout) return SERIAL_TIMEOUT; } + PROGRESS (1); } } @@ -267,7 +268,7 @@ mac_write (scb, str, len) if (first_mac_write++ < 4) { - sec_sleep (1); + sleep (1); } pb.ioRefNum = output_refnum; pb.ioBuffer = (Ptr) str; @@ -280,20 +281,6 @@ mac_write (scb, str, len) return 0; } -sec_sleep (int timeout) -{ - unsigned long start_time, now; - - time (&start_time); - - while (1) - { - time (&now); - if (now > start_time + timeout) - return; - } -} - static void mac_close (serial_t scb) { -- cgit v1.1