From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Eli Zaretskii" To: fnasser@redhat.com Cc: gdb-patches@sources.redhat.com Subject: Re: RFA: [ser-unix.c] Fix handling of baud rates [REPOST] Date: Fri, 11 May 2001 01:17:00 -0000 Message-id: <1659-Fri11May2001111827+0300-eliz@is.elta.co.il> References: <3AE751A5.AE7633E4@redhat.com> <3AFAE6AF.CA1B552D@redhat.com> X-SW-Source: 2001-05/msg00206.html > Date: Thu, 10 May 2001 15:06:23 -0400 > From: Fernando Nasser > > This patch implements what was discussed with JT and Eli. An error is > now being issued when the set baud rate is invalid. Here is the output: > > ./gdb -nw -b 30 > > (gdb) target remote /dev/ttyS0 > warning: Invalid baud rate 30. Minimum value is 50. > /dev/ttyS0: Invalid argument. > (gdb) > > > ./gdb -nw -b 200000 > > (gdb) target remote /dev/ttyS0 > warning: Invalid baud rate 200000. Closest values are 115200 and > 230400. > /dev/ttyS0: Invalid argument. > (gdb) > > > ./gdb -nw -b 500000 > > (gdb) target remote /dev/ttyS0 > warning: Invalid baud rate 500000. Maximum value is 460800. > /dev/ttyS0: Invalid argument. > (gdb) Looks good to me, thanks.