This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
-var-show-attributes response syntax
- From: Vladimir Prus <vladimir at codesourcery dot com>
- To: gdb at sources dot redhat dot com
- Date: Fri, 10 Nov 2006 16:55:32 +0300
- Subject: -var-show-attributes response syntax
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