diff options
author | Vladimir Prus <vladimir@codesourcery.com> | 2008-05-28 06:49:56 +0000 |
---|---|---|
committer | Vladimir Prus <vladimir@codesourcery.com> | 2008-05-28 06:49:56 +0000 |
commit | ea56f9c264cbe29995c61b84ab786e84b85b3c49 (patch) | |
tree | 6b47815c7e1fbf6b818be6739eae330250b927c1 /gdb/varobj.c | |
parent | ec386385a6903d0c9c4f0a529bc8107503e0e3ed (diff) | |
download | gdb-ea56f9c264cbe29995c61b84ab786e84b85b3c49.zip gdb-ea56f9c264cbe29995c61b84ab786e84b85b3c49.tar.gz gdb-ea56f9c264cbe29995c61b84ab786e84b85b3c49.tar.bz2 |
* varobj.c (varobj_update): Fix comment typo.
Fix indentation.
Diffstat (limited to 'gdb/varobj.c')
-rw-r--r-- | gdb/varobj.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/gdb/varobj.c b/gdb/varobj.c index 317f6b4..34db574 100644 --- a/gdb/varobj.c +++ b/gdb/varobj.c @@ -1173,18 +1173,18 @@ varobj_update (struct varobj **varp, struct varobj ***changelist, new = value_of_root (varp, &type_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) VEC_safe_push (varobj_p, result, *varp); - if (install_new_value ((*varp), new, type_changed)) - { - /* If type_changed is 1, install_new_value will never return - non-zero, so we'll never report the same variable twice. */ - gdb_assert (!type_changed); - VEC_safe_push (varobj_p, result, *varp); - } - + if (install_new_value ((*varp), new, type_changed)) + { + /* If type_changed is 1, install_new_value will never return + non-zero, so we'll never report the same variable twice. */ + gdb_assert (!type_changed); + VEC_safe_push (varobj_p, result, *varp); + } + if (new == NULL) { /* This means the varobj itself is out of scope. |