public inbox for insight@sourceware.org
 help / color / mirror / Atom feed
From: Tom Tromey <tromey@redhat.com>
To: "Pierre Muller" <muller@ics.u-strasbg.fr>
Cc: <insight@sourceware.org>
Subject: Re: [OBV] Fix gdbtk/generic/gdbtk-varobj.c compilation failure
Date: Wed, 16 Sep 2009 16:31:00 -0000	[thread overview]
Message-ID: <m3d45qu9zo.fsf@fleche.redhat.com> (raw)
In-Reply-To: <000001ca36b3$08f0b8c0$1ad22a40$@u-strasbg.fr> (Pierre Muller's 	message of "Wed, 16 Sep 2009 11:49:50 +0200")

>>>>> "Pierre" == Pierre Muller <muller@ics.u-strasbg.fr> writes:

Pierre> +  int ix, from, to;

Pierre>    list = Tcl_NewListObj (0, NULL);

Pierre> -  children = varobj_list_children (var);
Pierre> +  children = varobj_list_children (var, &from, &to);

You have to initialize from and to first -- they are in/out parameters.
-1 is the correct initial value to use.

Tom

  reply	other threads:[~2009-09-16 16:31 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-09-16  9:49 Pierre Muller
2009-09-16 16:31 ` Tom Tromey [this message]
2009-09-17  7:04   ` Pierre Muller

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=m3d45qu9zo.fsf@fleche.redhat.com \
    --to=tromey@redhat.com \
    --cc=insight@sourceware.org \
    --cc=muller@ics.u-strasbg.fr \
    /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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).