Re: Setting parity for remote serial

Tom Tromey
2013-07-10T18:10:01Z

>>>>> "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