This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: Setting parity for remote serial
- From: Tom Tromey <tromey at redhat dot com>
- To: Yurij Grechishhev <yurij dot grechishhev at gmail dot com>
- Cc: gdb-patches at sourceware dot org
- Date: Wed, 10 Jul 2013 12:09:54 -0600
- Subject: Re: Setting parity for remote serial
- References: <CAAyhtXRSWTdpDc4jiZ2k5zWCNUXUzRxNokN1F_aRdMfuWGsBHQ at mail dot gmail dot com>
>>>>> "Yurij" == Yurij Grechishhev <yurij.grechishhev@gmail.com> writes:
Yurij> GDB doesn't support command to set parity for serial ports. So there
Yurij> is a problem to connect target that use "odd" or "even" parity.
Yurij> The one way is to set parity before launching gdb (stty for Linux or
Yurij> MODE for Windows), but for Windows gdb sets parity to "none" during
Yurij> connection.
Yurij> I suggest using "set remoteparity <odd | even | none>" command for this.
It looks reasonable to me.
There are some formatting issues, but nothing too serious.
Do you have a copyright assignment in place?
If not, contact me off list and I will get you started on that.
This would need at least a ChangeLog entry, documentation patch, and
NEWS patch to be complete. A test case would be nice as well, though I
can see how it would be hard to make it actually do anything :)
Yurij> Do you plan to use "class serial" (set serial ...) for serial settings?
Yurij> "set serial parity <odd | even | none>" is more convenient way.
I didn't even know about "set serial".
It seems like dead code; but I'd have to dig into the history there to
find out.
Tom