From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andrew Cagney To: Mark Salter Cc: eliz@is.elta.co.il, gdb-patches@sources.redhat.com Subject: Re: set/show remotestopbits Date: Wed, 26 Sep 2001 10:02:00 -0000 Message-id: <3BB209FF.4050407@cygnus.com> References: <200109261227.f8QCRjr27498@deneb.localdomain> <1858-Wed26Sep2001164321+0300-eliz@is.elta.co.il> <200109261502.f8QF23T27912@deneb.localdomain> X-SW-Source: 2001-09/msg00354.html >>>>>> Eli Zaretskii writes: > > >>> Date: Wed, 26 Sep 2001 08:27:45 -0400 >>> From: Mark Salter >>> >>> 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