From patchwork Mon Jan 11 18:48:01 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Juan Manuel Guerrero X-Patchwork-Id: 10340 Received: (qmail 99730 invoked by alias); 11 Jan 2016 19:45:10 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Delivered-To: mailing list gdb-patches@sourceware.org Received: (qmail 99719 invoked by uid 89); 11 Jan 2016 19:45:09 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=0.1 required=5.0 tests=BAYES_50, FREEMAIL_FROM, RCVD_IN_DNSWL_LOW, SPF_PASS autolearn=ham version=3.3.2 spammy=bug-gdb@gnu.org, U*bug-gdb, buggdbgnuorg, Wait X-HELO: mout.gmx.net Received: from mout.gmx.net (HELO mout.gmx.net) (212.227.15.15) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-GCM-SHA384 encrypted) ESMTPS; Mon, 11 Jan 2016 19:45:08 +0000 Received: from linux-8hgb.site ([37.209.109.170]) by mail.gmx.com (mrgmx001) with ESMTPSA (Nemesis) id 0LuOYx-1a9sOd30b9-011k1J for ; Mon, 11 Jan 2016 20:45:04 +0100 Message-ID: <5693F8E1.4040602@gmx.de> Date: Mon, 11 Jan 2016 19:48:01 +0100 From: Juan Manuel Guerrero 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: gdb-patches@sourceware.org Subject: DJGPP specific fix for struct serial_ops in ser-go32.c X-UI-Out-Filterresults: notjunk:1; V01:K0:dUUln7ibtEA=:bh1z3hTGTTkanZ3J8t2Sm8 +WjECBpkx+wnus0Y+AyQKY/8VUsANnjbhZifNUHGDT94StD5A32CkfHcjuA6e+gaP4TAtDp4f o55tYVaCyDYuVJMts3ZBd1cdYvWEfAPuolvpwEHeo5s21N+6jYK608jWVmIUBjS6tzl0bt3nJ 3mCWPzTuu0p/Kkx5nULs1TK8FCWB1uwmIDxbqZlW4WonjXadOcunTyyux1SwxyvEj4GGsZeq2 n9rSqZxK67mtiSwwB/iQndDWPq90MzEypmmT4OOw0R500Goz5V7smUE4Y16AzisqM0SFUKx4b 1EdUp9FPC1tqH1F9/7PrIrv+yfCp2VdLCyw8vjKz6hlPSsd7nZeR//q4QEReXmheJOM7wwNIr Neok3OmZ1bFvdWF6stPO8UrkK4teweMclkb8KXNN/0RosS8hDOjzp+5EfW2bHNim6gPWzMocN oSF8dJRSirMcyEllXi+Iuhj2oeaSuHir2HjlwozvzJbW9s91JymxMFFHGnHvGThlusYQWJDEA xcBWWMsMTYAP241CdXo9AoOUBOnI+sRNxDBfDYwnhAsi1D0ziISjoxIHC4/yI3dtJUGoFPFTo GU6aGgmO2dyz0ZIJynWwGwSvKqfqaUmRZZmp/x559WBotTF6Vd0q2L1lfPogPpICjUQCq9Gtk OgPTqw9/ZqdNcsFFn+nqQVhGbBaaZPa7gJIzPYwb410iN7acXVKPYM23Qq3Vy2GztRZzM6fns cJkPMlFSwq98/kXclVgpgikRnNzXhuKi7l3UIN1LNUXNp0zpbfMYMjtOJy7nOufCgb39lyvXi DyxYJaJ 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@gnu.org but it has been bounced. Regards, Juan M. Guerrero 2016-01-10 Juan Manuel Guerrero * gdb/ser-go32.c: New function dos_setparity_noop. 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