This is the mail archive of the
archer@sourceware.org
mailing list for the Archer project.
[patch] Fix obvious typo in gdb/varobj.c
- From: ppluzhnikov at google dot com (Paul Pluzhnikov)
- To: archer at sourceware dot org
- Date: Mon, 13 Oct 2008 10:54:59 -0700 (PDT)
- Subject: [patch] Fix obvious typo in gdb/varobj.c
- Dkim-signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=google.com; s=beta;t=1223920504; bh=+oUCdupQ13BdpVyPK4PD/fLKXu4=;h=DomainKey-Signature:To:Subject:Message-Id:Date:From; b=enxUDX1jj1hym8+UPerVAKYTwCDKPXrxwZpJ9ohsp/GHichciJVvbWxLYW8t6AoHZcEwZ2n5AZ8QHDkYNyQwSQ==
- Domainkey-signature: a=rsa-sha1; s=beta; d=google.com; c=nofws; q=dns;h=to:subject:message-id:date:from;b=NTkeGSrKT2xw2fEbK7ZpnjrNJF7ugv4rE6OxFykCJSeu65kCrRDzclniEazwJqoAB2yOTWKbk4r1iRL9vlqxcQ==
Greetings,
Building current git source with gcc-4.3.1 fails with "'i' may be
used before initialized".
--
Paul Pluzhnikov
2008-10-13 Paul Pluzhnikov <ppluzhnikov@google.com>
* gdb/varobj.c (update_dynamic_varobj_children): Fix typo.
diff --git a/gdb/varobj.c b/gdb/varobj.c
index e424d03..361f9d2 100644
--- a/gdb/varobj.c
+++ b/gdb/varobj.c
@@ -881,7 +881,7 @@ update_dynamic_varobj_children (struct varobj *var,
{
int i;
children_changed = 1;
- for (i = i; i < VEC_length (varobj_p, var->children); ++i)
+ for (i = 0; i < VEC_length (varobj_p, var->children); ++i)
varobj_delete (VEC_index (varobj_p, var->children, i), NULL, 0);
}
VEC_truncate (varobj_p, var->children, i);