This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: set/show remotestopbits
>>>>>> Eli Zaretskii writes:
>
>
>>> Date: Wed, 26 Sep 2001 08:27:45 -0400
>>> From: Mark Salter <msalter@redhat.com>
>>>
>>> I have a target board with a stub and a serial port that is fixed
>>> at 2 stopbits, so I need a way to tell gdb to use something other
>>> than the default 1.
>
>
>> Unless I'm missing something, this command will not auto-complete on
>> possible values. More accurately, it will use the default completion
>> function, which tries to complete on symbols. Is it possible to add
>> support for completion?
>
>
> I'm going to take up Fernando's suggestion for the syntax. I'll look
> at completion then.
>
>
>> In any case, please also send something for gdb.texinfo to document
>> the new command.
Mark, can you old off a second - I don't what to have what happened to
Don, happening again :-) I'm not sure but the command might belong
somewhere else entirely - where does the commands setting baud rate live
for instance?
With regard to completion, yes Eli is correct, I noticed the same thing.
At present you need to use add_enum_cmd(). However, I should warn
you, add_enum_cmd() has one of the most obscure programmer interfaces
I've ever seen.
Andrew