Robustify mi2-var-child

Vladimir Prus vladimir@codesourcery.com
Fri Jan 12 11:07:00 GMT 2007


The mi2-var-child test expects -var-update to list some varobj as changed
after an assignment to some variable, without botherind to set
any initial value to that variable. When testing with remote target, is
happens that the initial value of the variable is the same value that
was left there by the previous test run.

Fixes as attached. The mi-var-child test does not need this fix
because it uses different source file (Eek!) and that source file
has a similar fix applied (Eek!)

OK?

- Volodya
		
	* gdb.mi/var-cmd.c (do_children_tests): Initialize
	the 'struct_declarations' variable to zeros.
	* gdb.mi/mi2-var-child.exp: Step over said
	initialization.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mi_remote_testing__gdb_mainline.diff
Type: text/x-diff
Size: 1299 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/gdb-patches/attachments/20070112/da205003/attachment.bin>


More information about the Gdb-patches mailing list