The patch below fixes the wrong argument list for the setparity function.  The
default dos_noop function used for this does not provide the second argument.

Regards,
Juan M. Guerrero



diff -aprNU5 gdb-7.10.1.orig/gdb/ser-go32.c gdb-7.10.1/gdb/ser-go32.c
--- gdb-7.10.1.orig/gdb/ser-go32.c	2015-11-23 00:42:20 +0100
+++ gdb-7.10.1/gdb/ser-go32.c	2016-01-10 08:24:56 +0100
@@ -593,10 +593,16 @@ dos_close (struct serial *scb)
 }
 
 
 
 static int
+dos_setparity_noop (struct serial *scb, int parity)
+{
+  return 0;  /* GO32 doesn't support this */
+}
+
+static int
 dos_noop (struct serial *scb)
 {
   return 0;
 }
 
@@ -862,11 +868,11 @@ static const struct serial_ops dos_ops =
   dos_set_tty_state,
   dos_print_tty_state,
   dos_noflush_set_tty_state,
   dos_setbaudrate,
   dos_setstopbits,
-  dos_noop,
+  dos_setparity_noop,
   dos_noop,			/* Wait for output to drain.  */
   (void (*)(struct serial *, int))NULL	/* Change into async mode.  */
 };
 
 int
