Re: RFA: [ser-unix.c] Fix handling of baud rates

Eli Zaretskii
2001-04-26T00:29:00Z

> 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?