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

Eli Zaretskii
2001-05-11T01:17:00Z

> Date: Thu, 10 May 2001 15:06:23 -0400
> From: Fernando Nasser <fnasser@redhat.com>
>
> 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.