summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVladimir Prus <vladimir@codesourcery.com>2008-05-28 06:49:56 +0000
committerVladimir Prus <vladimir@codesourcery.com>2008-05-28 06:49:56 +0000
commit356235e92d71d60883dead55b8e6ed9fc909eab5 (patch)
tree026e7e82a6d88e7eeb68bd2d462ccfda7ce26468
parent0cc19c91f628dc6f52bd7ed3273f1285472db282 (diff)
downloadgdb-356235e92d71d60883dead55b8e6ed9fc909eab5.tar.gz
* varobj.c (varobj_update): Fix comment typo.
Fix indentation.
-rw-r--r--gdb/ChangeLog5
-rw-r--r--gdb/varobj.c18
2 files changed, 14 insertions, 9 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 65d6044b4dd..ae01bb9c51b 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -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>
Set the symtab field of symbols read from ECOFF debugging entries.
diff --git a/gdb/varobj.c b/gdb/varobj.c
index 317f6b47fc3..34db574f1e2 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.