diff options
author | Yury Grechishchev <yury.grechishchev@yotadevices.com> | 2015-03-24 00:15:42 +0300 |
---|---|---|
committer | Joel Brobecker <brobecker@adacore.com> | 2015-03-23 15:34:42 -0700 |
commit | 236af5e336970a6b58cd17e0a2981bd96f3d09a0 (patch) | |
tree | 82297660721160db864fe9d48fcd135af23fce10 /gdb/doc | |
parent | 32b40af94e919e235c21486110311647cbeecf2e (diff) | |
download | gdb-236af5e336970a6b58cd17e0a2981bd96f3d09a0.zip gdb-236af5e336970a6b58cd17e0a2981bd96f3d09a0.tar.gz gdb-236af5e336970a6b58cd17e0a2981bd96f3d09a0.tar.bz2 |
GDB: Add set/show serial parity command.
The "set serial parity" command allows the user to control which
parity to use when communicating over a serial connection, rather
than having the parity hardcoded to none.
gdb/ChangeLog:
* NEWS: Mention set/show serial parity command.
* monitor.c (monitor_open): Call serial_setparity.
* remote.c (remote_open_1): Likewise.
* ser-base.c (ser_base_serparity): New function.
* ser-base.h (ser_base_setparity): Add declaration.
* ser-go32.c (dos_ops): Set "setparity" field.
* ser-mingw.c (ser_windows_raw): Do not set state.fParity and
state.Parity.
(ser_windows_setparity): New function.
(hardwire_ops): Add ser_windows_setparity.
(tty_ops): Add NULL for setparity field.
(pipe_ops): Add ser_base_setparity.
(tcp_ops): Likewise.
* ser-pipe.c (pipe_ops): Likewise.
* ser-tcp.c (tcp_ops): Likewise.
* ser-unix.c (hardwire_setparity): Add declaration.
(hardwire_raw): Don't reset PARENB flag.
(hardwire_setparity): New function.
(hardwire_ops): Add hardwire_setparity.
* serial.c (serial_setparity): New function.
(serial_parity): New global.
(parity_none, parity_odd, parity_even, parity_enums, parity):
New static globals.
(set_parity): New function.
(_initialize_serial): Add set/show serial parity commands.
* serial.h (GDBPARITY_NONE): Define.
(GDBPARITY_ODD): Define.
(GDBPARITY_EVEN): Define.
(serial_setparity) Add declaration.
(struct serial_ops): Add setparity field.
* target.h (serial_parity): Add declaration.
gdb/doc/ChangeLog:
* gdb.texinfo (Remote configuration): Document "set/show
serial parity" command.
Diffstat (limited to 'gdb/doc')
-rw-r--r-- | gdb/doc/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/doc/gdb.texinfo | 7 |
2 files changed, 12 insertions, 0 deletions
diff --git a/gdb/doc/ChangeLog b/gdb/doc/ChangeLog index 1f120da..b41c5cb 100644 --- a/gdb/doc/ChangeLog +++ b/gdb/doc/ChangeLog @@ -1,3 +1,8 @@ +2015-03-23 Yurij Grechishhev <yurij.grechishhev@gmail.com> + + * gdb.texinfo (Remote configuration): Document "set/show + serial parity" command. + 2015-03-18 Gary Benson <gbenson@redhat.com> * gdb.texinfo (General Query Packets): Remove documentation diff --git a/gdb/doc/gdb.texinfo b/gdb/doc/gdb.texinfo index 552da31..7117e42 100644 --- a/gdb/doc/gdb.texinfo +++ b/gdb/doc/gdb.texinfo @@ -19443,6 +19443,13 @@ remote targets. @item show serial baud Show the current speed of the remote connection. +@item set serial parity @var{parity} +Set the parity for the remote serial I/O. Supported values of @var{parity} are: +@code{even}, @code{none}, and @code{odd}. The default is @code{none}. + +@item show serial parity +Show the current parity of the serial port. + @item set remotebreak @cindex interrupt remote programs @cindex BREAK signal instead of Ctrl-C |