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 [REPOST]
- To: fnasser at redhat dot com
- Subject: Re: RFA: [ser-unix.c] Fix handling of baud rates [REPOST]
- From: "Eli Zaretskii" <eliz at is dot elta dot co dot il>
- Date: Fri, 11 May 2001 11:18:27 +0300
- CC: gdb-patches at sources dot redhat dot com
- References: <3AE751A5.AE7633E4@redhat.com> <3AFAE6AF.CA1B552D@redhat.com>
- Reply-to: Eli Zaretskii <eliz at is dot elta dot co dot il>
> 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.