This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: Setting parity for remote serial
- From: Pedro Alves <alves dot ped at gmail dot com>
- To: Tom Tromey <tromey at redhat dot com>
- Cc: Yurij Grechishhev <yurij dot grechishhev at gmail dot com>, gdb-patches at sourceware dot org
- Date: Fri, 04 Oct 2013 15:12:11 +0100
- Subject: Re: Setting parity for remote serial
- Authentication-results: sourceware.org; auth=none
- References: <CAAyhtXRSWTdpDc4jiZ2k5zWCNUXUzRxNokN1F_aRdMfuWGsBHQ at mail dot gmail dot com> <87bo6affrh dot fsf at fleche dot redhat dot com>
On 07/10/2013 07:09 PM, Tom Tromey wrote:
> 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.
Yeah, I don't know the history either, but it'd be totally fine with me
to start making use of it. These "set remotefoo" commands with no space
in them look really oddly named. However, adding "set serial parity" without
aliasing "set serial baud" to the old "set remotebaud" (and deprecating
that) wouldn't be desirable. IOW, IMO, if we add "set serial parity",
we should also alias "set remotebaud" to "set serial baud", and whatever
other commands would make sense (which should be really simple to do).
Thanks,
--
Pedro Alves