delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2016/01/11/13:48:19

X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f
X-Recipient: djgpp AT delorie DOT com
Message-ID: <5693EB86.2050203@gmx.de>
Date: Mon, 11 Jan 2016 18:51:02 +0100
From: "Juan Manuel Guerrero (juan DOT guerrero AT gmx DOT de) [via djgpp AT delorie DOT com]" <djgpp AT delorie DOT com>
User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; de; rv:1.9.2.13) Gecko/20101206 SUSE/3.1.7 Thunderbird/3.1.7
MIME-Version: 1.0
To: djgpp AT delorie DOT com
Subject: DJGPP specific bug in ser-go32.c
X-Provags-ID: V03:K0:TSOY4WwvzbBKeF2a21JEG+zV9I266Gvf7Cj3+Lr6QVDFtc5wQ1d
0/DrexuWHVhDg/KUgz/mJ7nn8VkLpEu4W6nDVfnL5ZYypJMcQn7Guy6h1P4E2Jj/rRTy9F8
3yRU9Dp98iCvSthOGFo8Tm2J/7ZyU/XqbWdN3RUWYdbR+C2kQw4x4L23ROW83k8B3fT2aSE
De21xr/sgQcUnhnwyCE6Q==
X-UI-Out-Filterresults: notjunk:1;V01:K0:WqXRE8pv20o=:P9ubytu1xl6y/6E1c0BKRc
kewI9gMeg1nf9GlNyWId1lXou3knphOFESt1c14ew7aCpE7joXgYtoNUgm2Gc6ymFLWpYQByk
ZQtLgb7X4CshJ7xAyVO6HNc3OQRMd+5EiTaHdRJ9I+WvSs92AoVOIRa+ytqYwBuXkSkiHl5lE
5lLugZDIdal8ud+0aKdZTz4EjbTQQsx2R2N1PbjE5nq4a+EMipMxQFDB9liuE9pN8N523gEFu
WtOUC7aNCGecbJY2oq9Mu4tawvqoJrZ0C13qo4uB8G/wHg5yEmTAoba7Pn9fxM1fJ/zSFImg3
dnH/fPZYWTZEKevUM61ePRqsYCjAHkc1m/PD0xSagnDsJaFLz8bxJU88hQDxhfgFIultr+VsB
+lhwJ/pLHIs2wGdUe/S0cg8RljteI00WVo/q3zIAdmEmnXeNgtde6bRhjnT1RpgcYSyiUyFRL
dRFLaht+4Ytp9nXfLajTVk/a+dOFr5Ic7j9g3PPHVLPdBUu7GopqkG0ll9E9Z680TEpRwYRaD
cwpn4754SR3G/zfwe1a+T7L6SbZXTlZC2519+VtDjc2nqnkKbKRJ6M7K3hzTGHniKLBf/1W67
0OxuaQIX4Mj/xX3aO5FNbpC7zqE1Um0zOhPkjz5D5Zgvc3K1Rp2pTpmh4wMxHyoH0KoofBPf1
n4RDS/UzsTw4Red4siRwKdLfEK3pi8jrjzBTycDR/1Ci5Jgw1Rwal3Vt+GdDOGp29T9oPfI6l
UxnT567xHrerLvR7BJhbdScjMMvjJWiTe+H66Zvibv6cpkOWhLHTv480L4wllrw3e4zLLsnni
50pJuVO
Reply-To: djgpp AT delorie DOT com

This is a fix for the DJGPP port of gdb.
I do not know when this has changed but the numbers of arguments passed to
setparity of struct serial_ops no longer match the number of arguments of
dos_noop.  The patch below fixes the issue providing a new dummy function.

Is there some one on this list that is member on the gdb bug mailing list?
I have tried to submitte this mail to bug-gdb AT gnu DOT org but it has been bounced.


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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright 2019   by DJ Delorie     Updated Jul 2019