This is the mail archive of the gdb@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

[cli] set <var_boolean> <tab>?


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]