diff options
author | Dan Callaghan <dan.callaghan@morsemicro.com> | 2023-05-08 18:29:45 +1000 |
---|---|---|
committer | Simon Marchi <simon.marchi@efficios.com> | 2023-05-09 14:31:06 -0400 |
commit | 78d16865df671f80da8d0a97b18596ef8a3feae3 (patch) | |
tree | 3a699b42ec99c5217ee0c81a7c732701b7399a13 /gdb/ser-unix.c | |
parent | 1fba7b3ac505eb349e86cbbdef3eebf6c550f493 (diff) | |
download | fsf-binutils-gdb-78d16865df671f80da8d0a97b18596ef8a3feae3.zip fsf-binutils-gdb-78d16865df671f80da8d0a97b18596ef8a3feae3.tar.gz fsf-binutils-gdb-78d16865df671f80da8d0a97b18596ef8a3feae3.tar.bz2 |
Support higher baud rates when they are defined
On Linux at least, baud rate codes are defined up to B4000000. Allow the
user to select them if they are present in the system headers.
Change-Id: I393ff32e4a4b6127bdf97e3306ad5b6ebf7c934e
Diffstat (limited to 'gdb/ser-unix.c')
-rw-r--r-- | gdb/ser-unix.c | 66 |
1 files changed, 66 insertions, 0 deletions
diff --git a/gdb/ser-unix.c b/gdb/ser-unix.c index ede2a58..cdc0cf9 100644 --- a/gdb/ser-unix.c +++ b/gdb/ser-unix.c @@ -328,6 +328,72 @@ baudtab[] = } , #endif +#ifdef B500000 + { + 500000, B500000 + } + , +#endif +#ifdef B576000 + { + 576000, B576000 + } + , +#endif +#ifdef B921600 + { + 921600, B921600 + } + , +#endif +#ifdef B1000000 + { + 1000000, B1000000 + } + , +#endif +#ifdef B1152000 + { + 1152000, B1152000 + } + , +#endif +#ifdef B1500000 + { + 1500000, B1500000 + } + , +#endif +#ifdef B2000000 + { + 2000000, B2000000 + } + , +#endif +#ifdef B2500000 + { + 2500000, B2500000 + } + , +#endif +#ifdef B3000000 + { + 3000000, B3000000 + } + , +#endif +#ifdef B3500000 + { + 3500000, B3500000 + } + , +#endif +#ifdef B4000000 + { + 4000000, B4000000 + } + , +#endif { -1, -1 } |