This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: Fix crash in -var-delete
> @@ -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