2016-03-10  Juan Manuel Guerrero  <juan.guerrero@gmx.de>

	* gdb/ser-go32.c:  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.11.orig/gdb/ser-go32.c gdb-7.11/gdb/ser-go32.c
--- gdb-7.11.orig/gdb/ser-go32.c	2016-02-10 03:19:38 +0100
+++ gdb-7.11/gdb/ser-go32.c	2016-03-10 19:19:38 +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
