This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[obv] varobj_invalidate: Fix indentation
- From: Jan Kratochvil <jan dot kratochvil at redhat dot com>
- To: gdb-patches at sourceware dot org
- Date: Fri, 10 Apr 2009 18:03:40 +0200
- Subject: [obv] varobj_invalidate: Fix indentation
Hi,
checked-in as obvious. Made a mistake first so in two commits:
http://sourceware.org/ml/gdb-cvs/2009-04/msg00054.html
http://sourceware.org/ml/gdb-cvs/2009-04/msg00055.html
Regards,
Jan
--- src/gdb/ChangeLog 2009/04/10 03:36:29 1.10360
+++ src/gdb/ChangeLog 2009/04/10 15:57:52 1.10361
@@ -1,6 +1,7 @@
2009-04-10 Jan Kratochvil <jan.kratochvil@redhat.com>
* gdbtypes.c: Remove excessive parentheses at the return keywords.
+ * varobj.c (varobj_invalidate): Fix indentation.
2009-04-08 Vladimir Prus <vladimir@codesourcery.com>
--- src/gdb/ChangeLog 2009/04/10 15:57:52 1.10361
+++ src/gdb/ChangeLog 2009/04/10 16:00:49 1.10362
@@ -2,6 +2,7 @@
* gdbtypes.c: Remove excessive parentheses at the return keywords.
* varobj.c (varobj_invalidate): Fix indentation.
+ * varobj.c (varobj_invalidate): Fix formatting text width.
2009-04-08 Vladimir Prus <vladimir@codesourcery.com>
--- src/gdb/varobj.c 2009/03/09 22:35:44 1.124
+++ src/gdb/varobj.c 2009/04/10 15:57:54 1.125
@@ -2751,6 +2751,7 @@
/* Invalidate the varobjs that are tied to locals and re-create the ones that
are defined on globals.
Invalidated varobjs will be always printed in_scope="invalid". */
+
void
varobj_invalidate (void)
{
@@ -2758,38 +2759,38 @@
struct varobj **varp;
if (varobj_list (&all_rootvarobj) > 0)
- {
- varp = all_rootvarobj;
- while (*varp != NULL)
- {
- /* Floating varobjs are reparsed on each stop, so we don't care if
- the presently parsed expression refers to something that's gone. */
- if ((*varp)->root->floating)
- continue;
+ {
+ varp = all_rootvarobj;
+ while (*varp != NULL)
+ {
+ /* Floating varobjs are reparsed on each stop, so we don't care if
+ the presently parsed expression refers to something that's gone. */
+ if ((*varp)->root->floating)
+ continue;
- /* global var must be re-evaluated. */
- if ((*varp)->root->valid_block == NULL)
- {
- struct varobj *tmp_var;
+ /* global var must be re-evaluated. */
+ if ((*varp)->root->valid_block == NULL)
+ {
+ struct varobj *tmp_var;
- /* Try to create a varobj with same expression. If we succeed replace
- the old varobj, otherwise invalidate it. */
- tmp_var = varobj_create (NULL, (*varp)->name, (CORE_ADDR) 0, USE_CURRENT_FRAME);
- if (tmp_var != NULL)
- {
- tmp_var->obj_name = xstrdup ((*varp)->obj_name);
- varobj_delete (*varp, NULL, 0);
- install_variable (tmp_var);
- }
- else
- (*varp)->root->is_valid = 0;
- }
- else /* locals must be invalidated. */
- (*varp)->root->is_valid = 0;
+ /* Try to create a varobj with same expression. If we succeed replace
+ the old varobj, otherwise invalidate it. */
+ tmp_var = varobj_create (NULL, (*varp)->name, (CORE_ADDR) 0, USE_CURRENT_FRAME);
+ if (tmp_var != NULL)
+ {
+ tmp_var->obj_name = xstrdup ((*varp)->obj_name);
+ varobj_delete (*varp, NULL, 0);
+ install_variable (tmp_var);
+ }
+ else
+ (*varp)->root->is_valid = 0;
+ }
+ else /* locals must be invalidated. */
+ (*varp)->root->is_valid = 0;
- varp++;
- }
- }
+ varp++;
+ }
+ }
xfree (all_rootvarobj);
return;
}
--- src/gdb/varobj.c 2009/04/10 15:57:54 1.125
+++ src/gdb/varobj.c 2009/04/10 16:00:49 1.126
@@ -2764,7 +2764,8 @@
while (*varp != NULL)
{
/* Floating varobjs are reparsed on each stop, so we don't care if
- the presently parsed expression refers to something that's gone. */
+ the presently parsed expression refers to something that's gone.
+ */
if ((*varp)->root->floating)
continue;
@@ -2773,9 +2774,10 @@
{
struct varobj *tmp_var;
- /* Try to create a varobj with same expression. If we succeed replace
- the old varobj, otherwise invalidate it. */
- tmp_var = varobj_create (NULL, (*varp)->name, (CORE_ADDR) 0, USE_CURRENT_FRAME);
+ /* Try to create a varobj with same expression. If we succeed
+ replace the old varobj, otherwise invalidate it. */
+ tmp_var = varobj_create (NULL, (*varp)->name, (CORE_ADDR) 0,
+ USE_CURRENT_FRAME);
if (tmp_var != NULL)
{
tmp_var->obj_name = xstrdup ((*varp)->obj_name);