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

Eli Zaretskii eliz@is.elta.co.il
Thu Apr 26 00:29:00 GMT 2001


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



More information about the Gdb-patches mailing list