* varobj.c (varobj_update): Fix comment typo.
Fix indentation.
This commit is contained in:
parent
ec386385a6
commit
ea56f9c264
@ -1,3 +1,8 @@
|
|||||||
|
2008-05-28 Vladimir Prus <vladimir@codesourcery.com>
|
||||||
|
|
||||||
|
* varobj.c (varobj_update): Fix comment typo.
|
||||||
|
Fix indentation.
|
||||||
|
|
||||||
2008-05-26 Joel Brobecker <brobecker@adacore.com>
|
2008-05-26 Joel Brobecker <brobecker@adacore.com>
|
||||||
|
|
||||||
Set the symtab field of symbols read from ECOFF debugging entries.
|
Set the symtab field of symbols read from ECOFF debugging entries.
|
||||||
|
18
gdb/varobj.c
18
gdb/varobj.c
@ -1173,18 +1173,18 @@ varobj_update (struct varobj **varp, struct varobj ***changelist,
|
|||||||
new = value_of_root (varp, &type_changed);
|
new = value_of_root (varp, &type_changed);
|
||||||
|
|
||||||
/* If this is a floating varobj, and its type has changed,
|
/* If this is a floating varobj, and its type has changed,
|
||||||
them note that it's changed. */
|
then note that it's changed. */
|
||||||
if (type_changed)
|
if (type_changed)
|
||||||
VEC_safe_push (varobj_p, result, *varp);
|
VEC_safe_push (varobj_p, result, *varp);
|
||||||
|
|
||||||
if (install_new_value ((*varp), new, type_changed))
|
if (install_new_value ((*varp), new, type_changed))
|
||||||
{
|
{
|
||||||
/* If type_changed is 1, install_new_value will never return
|
/* If type_changed is 1, install_new_value will never return
|
||||||
non-zero, so we'll never report the same variable twice. */
|
non-zero, so we'll never report the same variable twice. */
|
||||||
gdb_assert (!type_changed);
|
gdb_assert (!type_changed);
|
||||||
VEC_safe_push (varobj_p, result, *varp);
|
VEC_safe_push (varobj_p, result, *varp);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (new == NULL)
|
if (new == NULL)
|
||||||
{
|
{
|
||||||
/* This means the varobj itself is out of scope.
|
/* This means the varobj itself is out of scope.
|
||||||
|
Loading…
Reference in New Issue
Block a user