This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: RFA: [ser-unix.c] Fix handling of baud rates
- To: fnasser at redhat dot com
- Subject: Re: RFA: [ser-unix.c] Fix handling of baud rates
- From: "Eli Zaretskii" <eliz at is dot elta dot co dot il>
- Date: Thu, 26 Apr 2001 10:25:50 +0300
- CC: gdb-patches at sources dot redhat dot com
- References: <3AE751A5.AE7633E4@redhat.com>
- Reply-to: Eli Zaretskii <eliz at is dot elta dot co dot il>
> Date: Wed, 25 Apr 2001 18:37:25 -0400
> From: Fernando Nasser <fnasser@redhat.com>
>
> The following patch will cause GDB to use only legal values for the
> serial line speed. If the speed requested is not one of the valid
> speeds, the best speed that is less than the value requested will be
> used. However, if the requested speed is less than 50, 50 bauds will be
> used.
I'd say it is better to print an error message than silently use the
wrong baudrate. What if the user simply mistyped the value?