The following fixes a problem with -var-assign whereby an assignment of a new value is not seen by a subsequent -var-update. The underlying varobj_update call looks to see if there is a difference between the current value and a refreshed value. Since varobj_set_value actually changes both the internal value and the actual value, varobj_update does not add the variable to the changelist. The fix involves adding a new flag: "updated" to the struct varobj which is set by varobj_set_value when the value changes and is checked by varobj_update before comparing current and refreshed values for a varobj. ChangeLog: 2002-10-03 Jeff Johnston * varobj.c (struct varobj): Add new "updated" flag. (new_variable): Default "updated" flag to 0. (varobj_set_value): Set "updated" flag to 1 if value changes. (varobj_update): Check varobj "updated" flag before comparing old and refreshed values. Fix for PR gdb/702. Approved? -- Jeff J.