Ping: frozen variable objects

Vladimir Prus vladimir@codesourcery.com
Sun Mar 25 09:52:00 GMT 2007


The frozen variable objects patch:

	http://thread.gmane.org/gmane.comp.gdb.patches/31838

seem to be unreviewed as yet. Here's a version that's
updated for the current mainline, no regressions. OK?

- Volodya


-------------- next part --------------
        gdb/
	* varobj.h (varobj_set_frozen): New
	(varobj_get_frozen): New.
	(varobj_update): New parameter explicit.
	* varobj.c (struct varobj): New fields frozen
	and not_fetched.
	(varobj_set_frozen, varobj_get_frozen): New.
	(install_new_value): Don't fetch values for 
	frozen variable object, or children thereof.  Allow
	a frozen variable object to have non-fetched value.
	(varobj_update): Allow updating child variables.
	Don't traverse frozen children.
	(new_variable): Initialize the frozen field.
	(c_value_of_variable): Return NULL for frozen
	variable without any value yet. 
	* mi/mi-cmd-var.c (varobj_update_one): New parameter
	'explicit'.
	(mi_cmd_var_create): Output the 'frozen' field,
	as soon as testsuite is adjusted to expect that field.
	(mi_cmd_var_set_frozen): New.
	(mi_cmd_var_update): Pass the 'explicit' parameter to
	varobj_update_one.
	* mi/mi-cmds.c (mi_cmds): Register '-var-set-frozen'.
	* mi/mi-cmds.h (mi_cmd_var_set_frozen): Declare.

        doc/
        * gdb.texinfo (GDB/MI Variable Objects): Document
	frozen variables objects.

        testsuite/
	* gdb.mi/mi-var-cmd.exp: Delete varobjs left by previous
	tests. Run the frozen varobjs test.
	* gdb.mi/var-cmd.c (do_frozen_tests): New.
	* lib/mi-support.exp (mi_varobj_delete): New.
	(mi_varobj_update): Fix thinko.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: frozen__gdb_mainline.diff
Type: text/x-diff
Size: 22063 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/gdb-patches/attachments/20070325/99061ee9/attachment.bin>


More information about the Gdb-patches mailing list