From: Dan Callaghan <dan.callaghan@morsemicro.com>
To: gdb-patches@sourceware.org
Cc: Dan Callaghan <dan.callaghan@morsemicro.com>
Subject: [PATCH] support higher baud rates when they are defined
Date: Mon, 8 May 2023 18:29:45 +1000 [thread overview]
Message-ID: <20230508082945.821250-1-dan.callaghan@morsemicro.com> (raw)
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.
---
gdb/ser-unix.c | 66 ++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 66 insertions(+)
diff --git a/gdb/ser-unix.c b/gdb/ser-unix.c
index ede2a58308a..cdc0cf98b7b 100644
--- a/gdb/ser-unix.c
+++ b/gdb/ser-unix.c
@@ -327,6 +327,72 @@ baudtab[] =
460800, B460800
}
,
+#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
--
2.38.4
next reply other threads:[~2023-05-08 8:30 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-05-08 8:29 Dan Callaghan [this message]
2023-05-09 18:32 ` Simon Marchi
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20230508082945.821250-1-dan.callaghan@morsemicro.com \
--to=dan.callaghan@morsemicro.com \
--cc=gdb-patches@sourceware.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).