This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[ob] Fix comment typo, indentation
- From: Vladimir Prus <vladimir at codesourcery dot com>
- To: gdb-patches at sources dot redhat dot com
- Date: Wed, 28 May 2008 10:51:57 +0400
- Subject: [ob] Fix comment typo, indentation
David Anderson noted a typo in comment, and while fixing it I've
noted a weirdly indented code block. Fixed thusly.
- Volodya
Index: ChangeLog
===================================================================
RCS file: /cvs/src/src/gdb/ChangeLog,v
retrieving revision 1.9438
diff -u -p -r1.9438 ChangeLog
--- ChangeLog 27 May 2008 20:24:51 -0000 1.9438
+++ ChangeLog 28 May 2008 06:49:01 -0000
@@ -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.
Index: varobj.c
===================================================================
RCS file: /cvs/src/src/gdb/varobj.c,v
retrieving revision 1.112
diff -u -p -r1.112 varobj.c
--- varobj.c 6 May 2008 21:34:59 -0000 1.112
+++ varobj.c 28 May 2008 06:49:01 -0000
@@ -1173,18 +1173,18 @@ varobj_update (struct varobj **varp, str
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.