This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

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


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]