This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Re: how to access array elements?
- From: Daniel Jacobowitz <drow at mvista dot com>
- To: Joerg Beyer <j dot beyer at web dot de>
- Cc: gdb at sources dot redhat dot com
- Date: Mon, 17 Mar 2003 09:00:01 -0500
- Subject: Re: how to access array elements?
- References: <200303171102.h2HB2C309956@mailgate5.cinetic.de>
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?
--
Daniel Jacobowitz
MontaVista Software Debian GNU/Linux Developer