Mirror of the gdb mailing list
 help / color / mirror / Atom feed
* -var-show-attributes response syntax
@ 2006-11-10 13:55 Vladimir Prus
  2006-11-10 16:34 ` Nick Roberts
  0 siblings, 1 reply; 13+ messages in thread
From: Vladimir Prus @ 2006-11-10 13:55 UTC (permalink / raw)
  To: gdb


Hello!

Here's the docs for -var-show-attributes MI command:

       Synopsis 
            -var-show-attributes name

          List attributes of the specified variable object name: 
             status=attr [ ( ,attr )* ]
             where attr is { { editable | noneditable } | TBD }.

What is the reason for using "non" instead of "attribute_name=attribute_value" 
syntax? The above assumes all attributes are boolean, which is not very 
extensible.

How about changing the above to "editable=0/1"? This sounds like breaking 
backward compatibility, but probably is not, because "editable" is broken 
itself:

     -var-create C * 1+1
     ^done,name="C",numchild="0",type="long"
     (gdb)
     -var-show-attributes C
     ^done,attr="editable"
     (gdb)

Thoughts?

- Volodya




^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2006-11-11 10:03 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-11-10 13:55 -var-show-attributes response syntax Vladimir Prus
2006-11-10 16:34 ` Nick Roberts
2006-11-10 16:53   ` Vladimir Prus
2006-11-10 20:47     ` Nick Roberts
2006-11-10 21:06       ` Vladimir Prus
2006-11-10 21:23         ` Nick Roberts
2006-11-10 17:02   ` Andreas Schwab
2006-11-10 21:46   ` Eli Zaretskii
2006-11-10 21:54     ` Nick Roberts
2006-11-10 23:10       ` Eli Zaretskii
2006-11-10 23:33         ` Nick Roberts
2006-11-11  9:26           ` Eli Zaretskii
2006-11-11 10:03             ` Nick Roberts

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox