summaryrefslogtreecommitdiff
path: root/gdb/serial.h
diff options
context:
space:
mode:
authorSimon Marchi <simon.marchi@polymtl.ca>2021-01-12 14:19:49 -0500
committerSimon Marchi <simon.marchi@polymtl.ca>2021-01-12 14:19:49 -0500
commit16e9019ef738c251ecfbed512c6835f0f0a424f7 (patch)
treec01b11eb7ad1f8bd4817a773eaa9c52853899dde /gdb/serial.h
parent3f94e588596cdca710de71735127560788fd8770 (diff)
downloadbinutils-gdb-16e9019ef738c251ecfbed512c6835f0f0a424f7.tar.gz
gdb: move baud_rate and serial_parity declarations to serial.h
They are currently in target.h, it would make more sense to have them in serial.h, since they are defined in serial.c. gdb/ChangeLog: * target.h (baud_rate, serial_parity): Move declarations... * serial.h: ... here. * main.c: Include serial.h. * serial.c (baud_rate, serial_parity): Update doc. Change-Id: Idc983c154c80ccc29b07ce68df3483cefe03fb71
Diffstat (limited to 'gdb/serial.h')
-rw-r--r--gdb/serial.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/gdb/serial.h b/gdb/serial.h
index d9f5d4ba5ef..9a800491aff 100644
--- a/gdb/serial.h
+++ b/gdb/serial.h
@@ -36,6 +36,14 @@ typedef void *serial_ttystate;
struct serial;
struct serial_ops;
+/* Speed in bits per second, or -1 which means don't mess with the speed. */
+
+extern int baud_rate;
+
+/* Parity for serial port */
+
+extern int serial_parity;
+
/* Create a new serial for OPS. The new serial is not opened. */
/* Try to open NAME. Returns a new `struct serial *' on success, NULL