aboutsummaryrefslogtreecommitdiff
path: root/gdb/serial.c
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.c
parent3f94e588596cdca710de71735127560788fd8770 (diff)
downloadbinutils-16e9019ef738c251ecfbed512c6835f0f0a424f7.zip
binutils-16e9019ef738c251ecfbed512c6835f0f0a424f7.tar.gz
binutils-16e9019ef738c251ecfbed512c6835f0f0a424f7.tar.bz2
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.c')
-rw-r--r--gdb/serial.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/gdb/serial.c b/gdb/serial.c
index 4b75178..1854721 100644
--- a/gdb/serial.c
+++ b/gdb/serial.c
@@ -623,10 +623,7 @@ serial_pipe (struct serial *scbs[2])
static struct cmd_list_element *serial_set_cmdlist;
static struct cmd_list_element *serial_show_cmdlist;
-/* Baud rate specified for talking to serial target systems. Default
- is left as -1, so targets can choose their own defaults. */
-/* FIXME: This means that "show serial baud" and gr_files_info can
- print -1 or (unsigned int)-1. This is a Bad User Interface. */
+/* See serial.h. */
int baud_rate = -1;
@@ -638,7 +635,7 @@ serial_baud_show_cmd (struct ui_file *file, int from_tty,
value);
}
-/* Parity for serial port. */
+/* See serial.h. */
int serial_parity = GDBPARITY_NONE;