This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: PATCH: Start Fortran support for variable objects.


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]