Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Yurij Grechishhev <yurij.grechishhev@gmail.com>
To: gdb-patches@sourceware.org
Subject: Re: Setting parity for remote serial
Date: Mon, 29 Jul 2013 19:04:00 -0000	[thread overview]
Message-ID: <CAAyhtXR3wKKqWrFe8dUs9O+FUnyUGMjOg=7nT165D1-OAsrfkA@mail.gmail.com> (raw)
In-Reply-To: <83wqoevcfv.fsf@gnu.org>

[-- Attachment #1: Type: text/plain, Size: 841 bytes --]

Updated patch is in attachment.

2013/7/25 Eli Zaretskii <eliz@gnu.org>:
>> Date: Thu, 25 Jul 2013 11:15:11 +0400
>> From: Yurij Grechishhev <yurij.grechishhev@gmail.com>
>> Cc: gdb-patches@sourceware.org
>>
>> Spaces in ChangeLog are due to the mail client. I could send the attachement.
>
> Well, maybe you should consider switching to another mail client,
> then.  Attachments are okay, but generally less desirable.
>
>>  *** Changes in GDB 7.6
>>
>> +* GDB has two new commands: "set remoteparity odd|even|none" and
>> +  "show remoteparity". These allows to set or show parity for the
>> +  remote serial I/O.
>
> Again, two spaces between sentences.
>
> Otherwise, OK.
>
> Thanks.



-- 
With best regards!
____________________________

Yurij Grechishhev
Bauman State Technical University,
Department of Computer Systems and Networks

[-- Attachment #2: serialparity.patch --]
[-- Type: application/octet-stream, Size: 3023 bytes --]

--- ../../../gdb_old/gdb-7.6/gdb/doc/ChangeLog	2013-07-10 21:55:24.921750052 +0400
+++ gdb/doc/ChangeLog	2013-07-25 14:50:14.960811746 +0400
@@ -1,3 +1,8 @@
+2013-07-16  Yurij Grechishhev  <yurij.grechishhev@gmail.com>
+	
+	* gdb.texinfo (Remote configuration): Document "set/show
+	remoteparity".
+	
 2013-04-12  Jan Kratochvil  <jan.kratochvil@redhat.com>
 	    Eli Zaretskii  <eliz@gnu.org>
 

--- ../../../gdb_old/gdb-7.6/gdb/ChangeLog	2013-07-10 21:55:22.485750321 +0400
+++ gdb/ChangeLog	2013-07-25 14:24:03.806935947 +0400
@@ -1,3 +1,30 @@
+2013-07-16  Yurij Grechishhev  <yurij.grechishhev@gmail.com>
+
+	* NEWS: Mention set/show remoteparity command.
+	* monitor.c (monitor_open): Add serial_setparity.
+	* remote.c (remote_open_1): Likewise.
+	* ser-base.c (ser_base_serparity): New function.
+	* ser-base.h: Add ser_base_setparity declaration.
+	* serail.c: Add serial_parity declaration and definitions of
+	parity_enums and parity.
+	(set_parity): New function.
+	(serial_setparity): New function.
+	(_initialize_serial): Add set/show remoteparity command description
+	* serial.h: Add GDBPARITY_NONE, GDBPARITY_ODD, GDBPARITY_EVEN
+	definitions. Add serial_setparity declaration.
+	(serial_ops): Add setparity entry.
+	* ser-mingw.c (ser_windows_raw): Remove state.fParity and
+	state.Parity definitions.
+	(ser_windows_setparity): New function.
+	(_initialize_ser_windows): ops->setparity setting.
+	* ser-pipe.c (_initialize_ser_pipe): Likewise.
+	* ser-tcp.c (_initialize_ser_tcp): Likewise.
+	* ser-unix.c: Add hardwire_setparity declaration.
+	(hardwire_setparity): New function.
+	(_initialize_ser_hardwire): ops->setparity setting.
+	* target.h: serial_parity declaration.
+	* top.c: serial_parity definition.
+
 2013-04-26  Joel Brobecker  <brobecker@adacore.com>
 
 	* NEWS: Change "since GDB 7.5" into "in GDB 7.6".


--- ../../../gdb_old/gdb-7.6/gdb/doc/gdb.texinfo	2013-07-10 21:55:25.257751657 +0400
+++ gdb/doc/gdb.texinfo	2013-07-25 14:18:36.581811831 +0400
@@ -18168,6 +18168,13 @@ default is not to record at all.
 Show the current setting  of the file name on which to record the
 serial communications.
 
+@item set remoteparity @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 remoteparity
+Show the current parity of the serial port.
+
 @item set remotetimeout @var{num}
 @cindex timeout for serial communications
 @cindex remote timeout

--- ../../../gdb_old/gdb-7.6/gdb/NEWS	2013-07-10 21:55:32.402748483 +0400
+++ gdb/NEWS	2013-07-30 00:16:28.440596874 +0400
@@ -3,6 +3,10 @@
 
 *** Changes in GDB 7.6
 
+* GDB has two new commands: "set remoteparity odd|even|none" and 
+  "show remoteparity".  These allows to set or show parity for the 
+  remote serial I/O.
+
 * Target record has been renamed to record-full.
   Record/replay is now enabled with the "record full" command.
   This also affects settings that are associated with full record/replay


  parent reply	other threads:[~2013-07-29 19:04 UTC|newest]

Thread overview: 27+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-07-24 14:29 Yurij Grechishhev
2013-07-24 16:53 ` Eli Zaretskii
2013-07-25  7:15   ` Yurij Grechishhev
2013-07-25 16:21     ` Eli Zaretskii
     [not found]       ` <CAAyhtXRJaoxvfm7FH06AXeATgscXn4SrY5=ZD_h=BBmPoUdTBQ@mail.gmail.com>
2013-07-29 18:34         ` Eli Zaretskii
2013-07-29 19:25           ` Pedro Alves
2013-07-29 20:14             ` Yurij Grechishhev
2013-07-29 19:04       ` Yurij Grechishhev [this message]
2013-09-26 17:00 ` Joel Brobecker
2013-10-02 21:59   ` Yurij Grechishhev
     [not found]   ` <CAAyhtXTmrJ04BVhziaFnogGyWLz7+G+Qwbc9UnHJkrEbDgTjFw@mail.gmail.com>
2013-10-04  7:34     ` Joel Brobecker
2013-10-09  4:11       ` Joel Brobecker
2015-02-25 15:16       ` Joel Brobecker
     [not found]         ` <CAAyhtXRC8DFk0SdfLoQvhWk_+h5AFZW2QmXQ6RcdCVC9Asx9Vw@mail.gmail.com>
2015-02-27  8:16           ` Joel Brobecker
2015-03-15 21:49             ` Yurij Grechishhev
2015-03-16  3:32               ` Eli Zaretskii
2015-03-17 14:56               ` Joel Brobecker
2015-03-22 22:52                 ` Yurij Grechishhev
2015-03-23 13:11                   ` Joel Brobecker
2015-03-23 15:36                   ` Eli Zaretskii
2015-03-23 21:21                     ` Yurij Grechishhev
2015-03-23 22:52                       ` pushed: " Joel Brobecker
  -- strict thread matches above, loose matches on Subject: below --
2013-07-10 15:18 Yurij Grechishhev
2013-07-10 18:10 ` Tom Tromey
     [not found]   ` <524ECCBB.5050307@gmail.com>
2013-10-07 18:33     ` Yurij Grechishhev
2013-10-08  3:56       ` Joel Brobecker
2013-10-08 12:03         ` Pedro Alves

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='CAAyhtXR3wKKqWrFe8dUs9O+FUnyUGMjOg=7nT165D1-OAsrfkA@mail.gmail.com' \
    --to=yurij.grechishhev@gmail.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