aboutsummaryrefslogtreecommitdiff
path: root/gdb/ser-go32.c
diff options
context:
space:
mode:
authorStu Grossman <grossman@cygnus>1993-06-26 00:22:30 +0000
committerStu Grossman <grossman@cygnus>1993-06-26 00:22:30 +0000
commita037b21e7588263dba78ac0b1651abd56237ca93 (patch)
tree7c35de6074a134ee3c08e439f9b4c3d33c6124dc /gdb/ser-go32.c
parent2685ead7d6ccad3988f6fbffbc3a96ebada3d4dc (diff)
downloadgdb-a037b21e7588263dba78ac0b1651abd56237ca93.zip
gdb-a037b21e7588263dba78ac0b1651abd56237ca93.tar.gz
gdb-a037b21e7588263dba78ac0b1651abd56237ca93.tar.bz2
* remote.c: Add arg names to prototypes, in a modest effort at
clarification. Also add prototypes for some new functions. * (remote_wait): Better error reporting for 'T' responses. * ser-go32.c (strncasecmp): Make str1 & str2 be const. * (dos_async_init): Make usage message reflect requested port #. * ser-tcp.c (tcp_open): Terminate hostname properly to prevent random hostname lookup failures. Add nicer message for unknown host error. (wait_for): Wake up in case of exceptions. Also, restart select() if we got EINTR. * ser-unix.c (wait_for): Restart select() if we got EINTR. * serial.c: (serial_close): Clean up code.
Diffstat (limited to 'gdb/ser-go32.c')
-rw-r--r--gdb/ser-go32.c13
1 files changed, 6 insertions, 7 deletions
diff --git a/gdb/ser-go32.c b/gdb/ser-go32.c
index 5b3ad90..8689e24 100644
--- a/gdb/ser-go32.c
+++ b/gdb/ser-go32.c
@@ -49,7 +49,7 @@ static void go32_restore PARAMS ((serial_t scb));
static void go32_close PARAMS ((serial_t scb));
static serial_ttystate go32_get_tty_state PARAMS ((serial_t scb));
static int go32_set_tty_state PARAMS ((serial_t scb, serial_ttystate state));
-static int strncasecmp PARAMS ((char *str1, char *str2, int len));
+static int strncasecmp PARAMS ((const char *str1, const char *str2, int len));
static char *aptr PARAMS ((short p));
static ASYNC_STRUCT *getivec PARAMS ((int which));
static int dos_async_init PARAMS ((int port));
@@ -78,7 +78,7 @@ static int iov;
static int
strncasecmp(str1, str2, len)
- char *str1, *str2;
+ const char *str1, *str2;
register int len;
{
unsigned char c1, c2;
@@ -143,13 +143,12 @@ dos_async_init(port)
if (!async)
{
- error("GDB can not connect to asynctsr program, check that it is installed\n\
+ error("GDB cannot connect to asynctsr program, check that it is installed\n\
and that serial I/O is not being redirected (perhaps by NFS)\n\n\
example configuration:\n\
-C> mode com2:9600,n,8,1,p\n\
-C> asynctsr 2\n\
-C> gdb \n");
-
+C> mode com%d:9600,n,8,1,p\n\
+C> asynctsr %d\n\
+C> gdb \n", port, port);
}
iov = async->iov;