aboutsummaryrefslogtreecommitdiff
path: root/gdb/ser-mac.c
diff options
context:
space:
mode:
authorStan Shebs <shebs@codesourcery.com>1995-03-17 23:21:12 +0000
committerStan Shebs <shebs@codesourcery.com>1995-03-17 23:21:12 +0000
commite70a10c35a577953dc0bda1154301bf57bfe5c58 (patch)
tree449edb2afb5e308feff0a7362f9f31d8ea6995b6 /gdb/ser-mac.c
parentbff1e14da7966ebd82ad5b8b54fcdd233fda2b7c (diff)
downloadgdb-e70a10c35a577953dc0bda1154301bf57bfe5c58.zip
gdb-e70a10c35a577953dc0bda1154301bf57bfe5c58.tar.gz
gdb-e70a10c35a577953dc0bda1154301bf57bfe5c58.tar.bz2
* 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.
Diffstat (limited to 'gdb/ser-mac.c')
-rw-r--r--gdb/ser-mac.c19
1 files changed, 3 insertions, 16 deletions
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)
{