Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Andrew Cagney <ac131313@cygnus.com>
To: gdb@sources.redhat.com
Subject: [cli] set <var_boolean> <tab>?
Date: Sat, 22 Sep 2001 16:29:00 -0000	[thread overview]
Message-ID: <3BAD1EC0.1060504@cygnus.com> (raw)

Hello,

While knocking up ``maint set profile'' I noticed that:

	maint set profile <tab>

(a cli var_boolean) doesn't do what I expected (it does nothing).  I was 
expecting behavour similar to the auto/boolean commands:

(gdb) set remote P-packet <tab>
auto  off   on
(gdb) set remote P-packet disable

Notice how while it suggests ``auto'', ``on'' or ``off'' it will accept 
almost anything.

To get ``maint set profile <tab>'' and other var_boolean commands 
providing similar behavour I just need to mimic what 
add_set_auto_boolean_cmd() does.  However, it begs a question.

I can either:

	o	Add a add_set_boolean_cmd() that is similar
		to add_set_auto_boolean_cmd()

	o	Tweek add_set_cmd() to realise it is
		a var_boolean and set things up accordingly.

If the latter, I should probably eliminate add_set_auto_boolean_cmd() 
and adding it to add_set_cmd().

so?
Andrew


             reply	other threads:[~2001-09-22 16:29 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-09-22 16:29 Andrew Cagney [this message]
2001-09-23 13:17 ` Andrew Cagney

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3BAD1EC0.1060504@cygnus.com \
    --to=ac131313@cygnus.com \
    --cc=gdb@sources.redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox