Mirror of the gdb mailing list
 help / color / mirror / Atom feed
* [MI] frozen variable objects (bug)
@ 2007-06-26 22:47 Nick Roberts
  2007-06-27  6:30 ` Vladimir Prus
  0 siblings, 1 reply; 6+ messages in thread
From: Nick Roberts @ 2007-06-26 22:47 UTC (permalink / raw)
  To: gdb


In principle, if a variable object is frozen, print_varobj prints it's
state out with:

  if (varobj_get_frozen (var))
    ui_out_field_int (uiout, "frozen", 1);

In practice this never happens because print_varobj is called

a) from -var-create, in which case the object can only be frozen _after_ it
  is created.

b) from -var-list-children, but the frozen flag is not set for children, only
   for the variable object that was explicitly chosen (although varobj_update
   _does_ behave as expected for frozen children).

I guess the front end should keep track of which objects are frozen but it's an
attribute that should/could be added to the MI command -var-show-attributes.

Aside: I still don't understand the need for frozen objects.  In Emacs, if I
want to disable automatic update of a complex data type, I just click on the
parent to contract the display, which invokes "-var-delete -c" to delete the
children.  If later I want to look at their values, clicking on the parent
regenerates the children.

-- 
Nick                                           http://www.inet.net.nz/~nickrob


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

end of thread, other threads:[~2007-06-27 11:10 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-06-26 22:47 [MI] frozen variable objects (bug) Nick Roberts
2007-06-27  6:30 ` Vladimir Prus
2007-06-27  7:14   ` Nick Roberts
2007-06-27  7:46     ` Vladimir Prus
2007-06-27  8:19       ` Nick Roberts
2007-06-27 11:10       ` Daniel Jacobowitz

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