This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: PATCH: Start Fortran support for variable objects.
- From: Daniel Jacobowitz <drow at false dot org>
- To: Nick Roberts <nickrob at snap dot net dot nz>
- Cc: gdb-patches at sources dot redhat dot com
- Date: Wed, 29 Jun 2005 22:53:23 -0400
- Subject: Re: PATCH: Start Fortran support for variable objects.
- References: <17091.4780.953681.620094@farnswood.snap.net.nz>
On Thu, Jun 30, 2005 at 09:29:16AM +1200, Nick Roberts wrote:
>
> This patch adjusts the offset from 0 to 1 to allow the display of arrays
> in Fortran using variable objects.
I see that you're hardcoding this based on language. Can we do it
based on type instead? Specifically, TYPE_LOW_BOUND and
TYPE_HIGH_BOUND. We have got type information here - unless I'm
misreading, var->type should be the type of the array.
I'm not thrilled with the existing language-dependent behavior in
varobj; we have got a common type system, after all.
--
Daniel Jacobowitz
CodeSourcery, LLC