public inbox for insight@sourceware.org
 help / color / mirror / Atom feed
From: "Pierre Muller" <muller@ics.u-strasbg.fr>
To: <insight@sourceware.org>
Subject: [OBV] Fix gdbtk/generic/gdbtk-varobj.c compilation failure
Date: Wed, 16 Sep 2009 09:49:00 -0000	[thread overview]
Message-ID: <000001ca36b3$08f0b8c0$1ad22a40$@u-strasbg.fr> (raw)

Checked in as obvious fix
to fix build failure using
mi/mi-cmd-var.c code as model.



Pierre Muller
Pascal language support maintainer for GDB

gdb/gdbtk ChangeLog entry

2009-09-16  Pierre Muller  <muller@ics.u-strasbg.fr>

        * generic/gdbtk-varobj.c (variable_children): Adapt to
        varobj_list_children function change.


Index: generic/gdbtk-varobj.c
===================================================================
RCS file: /cvs/src/src/gdb/gdbtk/generic/gdbtk-varobj.c,v
retrieving revision 1.23
diff -u -p -r1.23 gdbtk-varobj.c
--- generic/gdbtk-varobj.c      6 Apr 2009 23:11:10 -0000       1.23
+++ generic/gdbtk-varobj.c      16 Sep 2009 09:44:38 -0000
@@ -416,13 +416,13 @@ variable_children (Tcl_Interp *interp, s
   VEC(varobj_p) *children;
   struct varobj *child;
   char *childname;
-  int ix;
+  int ix, from, to;

   list = Tcl_NewListObj (0, NULL);

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

-  for (ix = 0; VEC_iterate (varobj_p, children, ix, child); ++ix)
+  for (ix = from; ix < to && VEC_iterate (varobj_p, children, ix, child);
++ix

     {
       childname = varobj_get_objname (child);
       /* Add child to result list and install the Tcl command for it. */


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

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-09-16  9:49 Pierre Muller [this message]
2009-09-16 16:31 ` Tom Tromey
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='000001ca36b3$08f0b8c0$1ad22a40$@u-strasbg.fr' \
    --to=muller@ics.u-strasbg.fr \
    --cc=insight@sourceware.org \
    /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).