From: "Pierre Muller" <muller@ics.u-strasbg.fr>
To: "'Vladimir Prus'" <vladimir@codesourcery.com>,
<gdb-patches@sources.redhat.com>
Subject: RE: [RFA] Use vector for varobj_list_children interface.
Date: Wed, 30 Jan 2008 08:31:00 -0000 [thread overview]
Message-ID: <000001c86319$2cfcb3f0$86f61bd0$@u-strasbg.fr> (raw)
In-Reply-To: <200801301019.53604.vladimir@codesourcery.com>
Volodya,
I suspect that your commit broke
gdbtk:
$ make
gcc -c -gstabs+ -O0 -I. -I../../purecvs/gdb -I../../purecvs/gdb/config
-DLOCAL
EDIR="\"/usr/local/share/locale\"" -DHAVE_CONFIG_H
-I../../purecvs/gdb/../includ
e/opcode -I../../purecvs/gdb/../readline/.. -I../bfd
-I../../purecvs/gdb/../bfd
-I../../purecvs/gdb/../include -I../libdecnumber
-I../../purecvs/gdb/../libdecnu
mber -DMI_OUT=1 -DGDBTK -DTUI=1 -Wall -Wdeclaration-after-statement
-Wpointer
-arith -Wformat-nonliteral -Wno-unused -Wno-switch -Wno-char-subscripts
-Werror
-I../../purecvs/gdb/../libgui/src
-I/home/Pierre/gdbcvs/purecvs/itcl/itcl/gener
ic \
-I/home/Pierre/gdbcvs/purecvs/tcl/generic
-I/home/Pierre/gdbcvs/purecvs/
tk/generic -I"/home/Pierre/gdbcvs/purecvs/tk/xlib" \
../../purecvs/gdb/gdbtk/generic/gdbtk-varobj.c
../../purecvs/gdb/gdbtk/generic/gdbtk-varobj.c: In function
`variable_children':
../../purecvs/gdb/gdbtk/generic/gdbtk-varobj.c:422: error: too many
arguments to
function `varobj_list_children'
make: *** [gdbtk-varobj.o] Error 1
Could you please fix that?
Pierre Muller
> -----Original Message-----
> From: gdb-patches-owner@sourceware.org [mailto:gdb-patches-
> owner@sourceware.org] On Behalf Of Vladimir Prus
> Sent: Wednesday, January 30, 2008 8:20 AM
> To: gdb-patches@sources.redhat.com
> Subject: Re: [RFA] Use vector for varobj_list_children interface.
>
> On Wednesday 30 January 2008 00:52:40 Daniel Jacobowitz wrote:
> > On Thu, Jan 17, 2008 at 05:55:47PM +0300, Vladimir Prus wrote:
> > > + for (ix = 0; VEC_iterate (varobj_p, children, ix, child); ++ix)
> > > {
> > > struct cleanup *cleanup_child;
> > > cleanup_child = make_cleanup_ui_out_tuple_begin_end (uiout,
> "child");
> > > - print_varobj (*cc, print_values, 1 /* print expression */);
> > > - cc++;
> > > + print_varobj (child, print_values, 1 /* print expression
> */);
> > > do_cleanups (cleanup_child);
> > > }
> > > do_cleanups (cleanup_children);
> > > - xfree (childlist);
> > > return MI_CMD_DONE;
> > > }
> >
> > Not freeing children here is on purpose, right? It's now the copy
> > from inside the varobj.
>
> Right. I've added a comment to varobj_list_children to make
> this more clear.
>
> >
> > > -int
> > > -varobj_list_children (struct varobj *var, struct varobj
> ***childlist)
> > > +VEC(varobj_p)*
> >
> > Space there :-)
>
> Strictly speaking, I think that gcc does not use space after VEC. But
> I have better things to do that arguing about this ;-)
>
> > Otherwise OK, thanks.
>
> Thanks. I've also noticed I did not update dependencies for varobj_h,
> now that it includes vec.h. I've added that, and checked in.
>
> - Volodya
next prev parent reply other threads:[~2008-01-30 8:22 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-01-17 14:56 Vladimir Prus
2008-01-29 21:54 ` Daniel Jacobowitz
2008-01-30 7:22 ` Vladimir Prus
2008-01-30 8:31 ` Pierre Muller [this message]
2008-01-30 8:40 ` Vladimir Prus
2008-01-30 8:48 ` Pierre Muller
2008-01-30 13:52 ` Daniel Jacobowitz
2008-01-30 13:57 ` Vladimir Prus
2008-01-30 14:05 ` Daniel Jacobowitz
2008-01-30 14:17 ` Daniel Jacobowitz
2008-01-30 15:09 ` Vladimir Prus
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='000001c86319$2cfcb3f0$86f61bd0$@u-strasbg.fr' \
--to=muller@ics.u-strasbg.fr \
--cc=gdb-patches@sources.redhat.com \
--cc=vladimir@codesourcery.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox