From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18846 invoked by alias); 16 Sep 2009 16:31:51 -0000 Received: (qmail 18838 invoked by uid 22791); 16 Sep 2009 16:31:50 -0000 X-SWARE-Spam-Status: No, hits=-2.4 required=5.0 tests=AWL,BAYES_00,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 16 Sep 2009 16:31:46 +0000 Received: from int-mx04.intmail.prod.int.phx2.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.17]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id n8GGVgES026937; Wed, 16 Sep 2009 12:31:42 -0400 Received: from ns3.rdu.redhat.com (ns3.rdu.redhat.com [10.11.255.199]) by int-mx04.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id n8GGVfcg018861; Wed, 16 Sep 2009 12:31:41 -0400 Received: from opsy.redhat.com (ovpn01.gateway.prod.ext.phx2.redhat.com [10.5.9.1]) by ns3.rdu.redhat.com (8.13.8/8.13.8) with ESMTP id n8GGVdkU020054; Wed, 16 Sep 2009 12:31:40 -0400 Received: by opsy.redhat.com (Postfix, from userid 500) id 7D5E6378198; Wed, 16 Sep 2009 10:31:39 -0600 (MDT) From: Tom Tromey To: "Pierre Muller" Cc: Subject: Re: [OBV] Fix gdbtk/generic/gdbtk-varobj.c compilation failure References: <000001ca36b3$08f0b8c0$1ad22a40$@u-strasbg.fr> Reply-To: Tom Tromey Date: Wed, 16 Sep 2009 16:31:00 -0000 In-Reply-To: <000001ca36b3$08f0b8c0$1ad22a40$@u-strasbg.fr> (Pierre Muller's message of "Wed, 16 Sep 2009 11:49:50 +0200") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-IsSubscribed: yes Mailing-List: contact insight-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: insight-owner@sourceware.org X-SW-Source: 2009-q3/txt/msg00043.txt.bz2 >>>>> "Pierre" == Pierre Muller 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