public inbox for gdb@sourceware.org
 help / color / mirror / Atom feed
* Checking if value is editable
@ 2005-07-14  8:03 Vladimir Prus
  0 siblings, 0 replies; only message in thread
From: Vladimir Prus @ 2005-07-14  8:03 UTC (permalink / raw)
  To: gdb


Hello,
how is it possible to check that a value/expression is editable, so that I
can disable "edit" functionality in a GUI.

Reading MI docs, I see that '-var-assign' only works in variable is
'editable', but there's what I get in gdb 6.3:

   (gdb)
   -var-create constant 0 123+5*6
   ^done,name="constant",numchild="0",type="long"
   (gdb)
   -var-show-attributes constant
   ^done,attr="editable"

This looks like a bug... setting the value of 123+5*6 won't work.

So:
1. Is above indeed a bug?
2. Can I get the same information ("is value editable") using command line
interface, and not MI.

Thanks,
Volodya

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2005-07-14  8:03 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-07-14  8:03 Checking if value is editable Vladimir Prus

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).