From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andrew Cagney To: gdb@sources.redhat.com Subject: [cli] set ? Date: Sat, 22 Sep 2001 16:29:00 -0000 Message-id: <3BAD1EC0.1060504@cygnus.com> X-SW-Source: 2001-09/msg00199.html Hello, While knocking up ``maint set profile'' I noticed that: maint set profile (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 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 '' 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