Fix crash in -var-delete
Nick Roberts
nickrob@snap.net.nz
Thu Nov 8 05:27:00 GMT 2007
> @@ -1292,6 +1292,8 @@ delete_variable_1 (struct cpstack **resu
> for (i = 0; i < VEC_length (varobj_p, var->children); ++i)
> {
> varobj_p child = VEC_index (varobj_p, var->children, i);
> + if (!child)
> + continue;
> if (!remove_from_parent_p)
> child->parent = NULL;
Should child not get removed from the list of its parents' children when
deleted first time round? Then checking for child shouldn't be necessary.
--
Nick http://www.inet.net.nz/~nickrob
More information about the Gdb-patches
mailing list