2010-02-23 Harald Koenig <H.Koenig@science-computing.de>
* varobj.c (varobj_update): Avoid non-constants in initializers.
This commit is contained in:
parent
0c13f7cc02
commit
cfce2ea2f1
@ -1,3 +1,7 @@
|
|||||||
|
2010-02-23 Harald Koenig <H.Koenig@science-computing.de>
|
||||||
|
|
||||||
|
* varobj.c (varobj_update): Avoid non-constants in initializers.
|
||||||
|
|
||||||
2010-02-23 Tom Tromey <tromey@redhat.com>
|
2010-02-23 Tom Tromey <tromey@redhat.com>
|
||||||
|
|
||||||
* dwarf2loc.c (read_pieced_value) <DWARF_VALUE_STACK>: Correctly
|
* dwarf2loc.c (read_pieced_value) <DWARF_VALUE_STACK>: Correctly
|
||||||
|
18
gdb/varobj.c
18
gdb/varobj.c
@ -1700,7 +1700,8 @@ VEC(varobj_update_result) *varobj_update (struct varobj **varp, int explicit)
|
|||||||
|
|
||||||
if (!(*varp)->root->is_valid)
|
if (!(*varp)->root->is_valid)
|
||||||
{
|
{
|
||||||
varobj_update_result r = {*varp};
|
varobj_update_result r = {0};
|
||||||
|
r.varobj = *varp;
|
||||||
r.status = VAROBJ_INVALID;
|
r.status = VAROBJ_INVALID;
|
||||||
VEC_safe_push (varobj_update_result, result, &r);
|
VEC_safe_push (varobj_update_result, result, &r);
|
||||||
return result;
|
return result;
|
||||||
@ -1708,7 +1709,8 @@ VEC(varobj_update_result) *varobj_update (struct varobj **varp, int explicit)
|
|||||||
|
|
||||||
if ((*varp)->root->rootvar == *varp)
|
if ((*varp)->root->rootvar == *varp)
|
||||||
{
|
{
|
||||||
varobj_update_result r = {*varp};
|
varobj_update_result r = {0};
|
||||||
|
r.varobj = *varp;
|
||||||
r.status = VAROBJ_IN_SCOPE;
|
r.status = VAROBJ_IN_SCOPE;
|
||||||
|
|
||||||
/* Update the root variable. value_of_root can return NULL
|
/* Update the root variable. value_of_root can return NULL
|
||||||
@ -1738,7 +1740,8 @@ VEC(varobj_update_result) *varobj_update (struct varobj **varp, int explicit)
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
varobj_update_result r = {*varp};
|
varobj_update_result r = {0};
|
||||||
|
r.varobj = *varp;
|
||||||
VEC_safe_push (varobj_update_result, stack, &r);
|
VEC_safe_push (varobj_update_result, stack, &r);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1815,7 +1818,8 @@ VEC(varobj_update_result) *varobj_update (struct varobj **varp, int explicit)
|
|||||||
for (i = VEC_length (varobj_p, changed) - 1; i >= 0; --i)
|
for (i = VEC_length (varobj_p, changed) - 1; i >= 0; --i)
|
||||||
{
|
{
|
||||||
varobj_p tmp = VEC_index (varobj_p, changed, i);
|
varobj_p tmp = VEC_index (varobj_p, changed, i);
|
||||||
varobj_update_result r = {tmp};
|
varobj_update_result r = {0};
|
||||||
|
r.varobj = tmp;
|
||||||
r.changed = 1;
|
r.changed = 1;
|
||||||
r.value_installed = 1;
|
r.value_installed = 1;
|
||||||
VEC_safe_push (varobj_update_result, stack, &r);
|
VEC_safe_push (varobj_update_result, stack, &r);
|
||||||
@ -1825,7 +1829,8 @@ VEC(varobj_update_result) *varobj_update (struct varobj **varp, int explicit)
|
|||||||
varobj_p tmp = VEC_index (varobj_p, unchanged, i);
|
varobj_p tmp = VEC_index (varobj_p, unchanged, i);
|
||||||
if (!tmp->frozen)
|
if (!tmp->frozen)
|
||||||
{
|
{
|
||||||
varobj_update_result r = {tmp};
|
varobj_update_result r = {0};
|
||||||
|
r.varobj = tmp;
|
||||||
r.value_installed = 1;
|
r.value_installed = 1;
|
||||||
VEC_safe_push (varobj_update_result, stack, &r);
|
VEC_safe_push (varobj_update_result, stack, &r);
|
||||||
}
|
}
|
||||||
@ -1852,7 +1857,8 @@ VEC(varobj_update_result) *varobj_update (struct varobj **varp, int explicit)
|
|||||||
/* Child may be NULL if explicitly deleted by -var-delete. */
|
/* Child may be NULL if explicitly deleted by -var-delete. */
|
||||||
if (c != NULL && !c->frozen)
|
if (c != NULL && !c->frozen)
|
||||||
{
|
{
|
||||||
varobj_update_result r = {c};
|
varobj_update_result r = {0};
|
||||||
|
r.varobj = c;
|
||||||
VEC_safe_push (varobj_update_result, stack, &r);
|
VEC_safe_push (varobj_update_result, stack, &r);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user