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 [REPOST]


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


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