From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 32090 invoked by alias); 18 Mar 2003 00:49:43 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 32021 invoked from network); 18 Mar 2003 00:49:43 -0000 Received: from unknown (HELO crack.them.org) (65.125.64.184) by sources.redhat.com with SMTP; 18 Mar 2003 00:49:43 -0000 Received: from nevyn.them.org ([66.93.61.169] ident=mail) by crack.them.org with asmtp (Exim 3.12 #1 (Debian)) id 18v7Bu-0003vg-00; Mon, 17 Mar 2003 20:51:02 -0600 Received: from drow by nevyn.them.org with local (Exim 3.36 #1 (Debian)) id 18v5IR-0004TB-00; Mon, 17 Mar 2003 19:49:39 -0500 Date: Tue, 18 Mar 2003 00:49:00 -0000 From: Daniel Jacobowitz To: joerg Cc: gdb@sources.redhat.com Subject: Re: how to access array elements? Message-ID: <20030318004939.GA17133@nevyn.them.org> Mail-Followup-To: joerg , gdb@sources.redhat.com References: <200303171102.h2HB2C309956@mailgate5.cinetic.de> <20030317140001.GA29110@nevyn.them.org> <3E76540D.10302@web.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3E76540D.10302@web.de> User-Agent: Mutt/1.5.1i X-SW-Source: 2003-03/txt/msg00268.txt.bz2 On Tue, Mar 18, 2003 at 12:02:37AM +0100, joerg wrote: > > > Daniel Jacobowitz wrote: > >On Mon, Mar 17, 2003 at 12:02:12PM +0100, Joerg Beyer wrote: > > > >>Dear List Reader, > >> > >>while fiddeling with the gdb-sources, I want to iterate over the > >>values of an array. I have the "struct value*"-pointer, that is a > >>TYPE_CODE_ARRAY. How do I get value-pointers to the > >>entries of the array? > > > > > >Try value_subscript? > > > This function is not commented. Is this suggested comment correct? I don't know - note that I suggested value_subscript, not gdb_value_subscript. I guess it depends what you're doing. -- Daniel Jacobowitz MontaVista Software Debian GNU/Linux Developer