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: Wu Zhou <woodzltc at cn dot ibm dot com>
- To: Nick Roberts <nickrob at snap dot net dot nz>
- Cc: Daniel Jacobowitz <drow at false dot org>, gdb-patches at sources dot redhat dot com
- Date: Thu, 30 Jun 2005 08:27:08 +0800 (CST)
- Subject: Re: PATCH: Start Fortran support for variable objects.
- References: <17091.4780.953681.620094@farnswood.snap.net.nz><20050630131809.GB8241@nevyn.them.org> <17092.28833.284587.118362@farnswood.snap.net.nz><Pine.LNX.4.63.0506300455390.11503@wks190384wss.cn.ibm.com><17092.51062.559020.560618@farnswood.snap.net.nz>
> So I should have done:
>
> (top-gdb) p TYPE_LOW_BOUND(var->type->main_type->fields->type)
> $1 = 1
> (top-gdb) p TYPE_HIGH_BOUND(var->type->main_type->fields->type)
> $2 = 4
Yes. TYPE_LOW_BOUND is against the range_type. So my guess is wrong
indeed.
Cheers
- Wu Zhou