* generic/gdbtk-varobj.c: Adjust for varobj_list_children change
@ 2008-01-31 13:34 Maciej W. Rozycki
2008-01-31 22:59 ` Daniel Jacobowitz
2008-02-06 19:42 ` Keith Seitz
0 siblings, 2 replies; 4+ messages in thread
From: Maciej W. Rozycki @ 2008-01-31 13:34 UTC (permalink / raw)
To: insight, gdb-patches; +Cc: Vladimir Prus, Maciej W. Rozycki
Hello,
Following recent changes to varobj.c this is a fix to make Insight build
again.
I have regression tested it with the gdb.gdbtk/*.exp subset of the test
suite, using the mipsisa32-sde-elf target with the
mips-sim-sde32/-EB/-march=mips32r2/-mips16 board and it actually saw an
improvement compared to the state from before the change to varobj.c:
-# of expected passes 457
-# of unexpected failures 28
+# of expected passes 517
+# of unexpected failures 30
2008-01-30 Maciej W. Rozycki <macro@mips.com>
* generic/gdbtk-varobj.c (variable_children): Adjust
for varobj_list_children change.
OK to apply?
Maciej
gdb-varobj_list_children.diff
Index: binutils-quilt/src/gdb/gdbtk/generic/gdbtk-varobj.c
===================================================================
--- binutils-quilt.orig/src/gdb/gdbtk/generic/gdbtk-varobj.c 2007-04-30 13:24:36.000000000 +0100
+++ binutils-quilt/src/gdb/gdbtk/generic/gdbtk-varobj.c 2008-01-30 15:34:19.000000000 +0000
@@ -413,26 +413,24 @@
variable_children (Tcl_Interp *interp, struct varobj *var)
{
Tcl_Obj *list;
- struct varobj **childlist;
- struct varobj **vc;
+ VEC(varobj_p) *children;
+ struct varobj *child;
char *childname;
+ int ix;
list = Tcl_NewListObj (0, NULL);
- varobj_list_children (var, &childlist);
+ children = varobj_list_children (var);
- vc = childlist;
- while (*vc != NULL)
+ for (ix = 0; VEC_iterate (varobj_p, children, ix, child); ++ix)
{
- childname = varobj_get_objname (*vc);
+ childname = varobj_get_objname (child);
/* Add child to result list and install the Tcl command for it. */
Tcl_ListObjAppendElement (NULL, list,
Tcl_NewStringObj (childname, -1));
install_variable (interp, childname);
- vc++;
}
- xfree (childlist);
return list;
}
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: generic/gdbtk-varobj.c: Adjust for varobj_list_children change
2008-01-31 13:34 generic/gdbtk-varobj.c: Adjust for varobj_list_children change Maciej W. Rozycki
@ 2008-01-31 22:59 ` Daniel Jacobowitz
2008-02-06 19:42 ` Keith Seitz
1 sibling, 0 replies; 4+ messages in thread
From: Daniel Jacobowitz @ 2008-01-31 22:59 UTC (permalink / raw)
To: Maciej W. Rozycki; +Cc: insight, gdb-patches, Vladimir Prus, Maciej W. Rozycki
On Wed, Jan 30, 2008 at 03:58:30PM +0000, Maciej W. Rozycki wrote:
> 2008-01-30 Maciej W. Rozycki <macro@mips.com>
>
> * generic/gdbtk-varobj.c (variable_children): Adjust
> for varobj_list_children change.
>
> OK to apply?
For what it's worth, looks right to me.
--
Daniel Jacobowitz
CodeSourcery
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: generic/gdbtk-varobj.c: Adjust for varobj_list_children change
2008-01-31 13:34 generic/gdbtk-varobj.c: Adjust for varobj_list_children change Maciej W. Rozycki
2008-01-31 22:59 ` Daniel Jacobowitz
@ 2008-02-06 19:42 ` Keith Seitz
2008-02-07 12:59 ` Maciej W. Rozycki
1 sibling, 1 reply; 4+ messages in thread
From: Keith Seitz @ 2008-02-06 19:42 UTC (permalink / raw)
To: Maciej W. Rozycki; +Cc: insight
Maciej W. Rozycki wrote:
> Following recent changes to varobj.c this is a fix to make Insight build
> again.
You've already committed this, yes? I didn't see a note stating as much.
Thank you for the patch!
Keith
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: generic/gdbtk-varobj.c: Adjust for varobj_list_children change
2008-02-06 19:42 ` Keith Seitz
@ 2008-02-07 12:59 ` Maciej W. Rozycki
0 siblings, 0 replies; 4+ messages in thread
From: Maciej W. Rozycki @ 2008-02-07 12:59 UTC (permalink / raw)
To: Keith Seitz; +Cc: insight
On Wed, 6 Feb 2008, Keith Seitz wrote:
> You've already committed this, yes? I didn't see a note stating as much.
I did -- I do not generally announce patch commissions unless a
conditional-only approval has been granted based on no objections to be
seen within some reasonable time period. I hope it does not clash with
the policy here.
> Thank you for the patch!
You are welcome!
Maciej
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2008-02-07 12:59 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-01-31 13:34 generic/gdbtk-varobj.c: Adjust for varobj_list_children change Maciej W. Rozycki
2008-01-31 22:59 ` Daniel Jacobowitz
2008-02-06 19:42 ` Keith Seitz
2008-02-07 12:59 ` Maciej W. Rozycki
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).