This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Re: Upcoming DWARF 3 and FORTRAN95 patches for 5.1.1 or 5.2?
- From: Daniel Berlin <dan at dberlin dot org>
- To: Petr Sorfa <petrs at caldera dot com>
- Cc: Daniel Jacobowitz <drow at mvista dot com>, <gdb at sources dot redhat dot com>
- Date: Fri, 18 Jan 2002 14:50:42 -0500 (EST)
- Subject: Re: Upcoming DWARF 3 and FORTRAN95 patches for 5.1.1 or 5.2?
On Fri, 18 Jan 2002, Petr Sorfa wrote:
> Hi Daniel,
>
> > > A comment about the patch you mentioned before:
> > > http://sources.redhat.com/ml/gdb-patches/2001-06/msg00441.html
> > >
> > > I noticed that you put new entries into struct symbol of type locexpr.
> > > I'm not too sure if that is the correct to place them. In my
> > > understanding these location expressions need only be associated with
> > > the type of a symbol rather than the symbol itself.
> > No, it describes the location of a symbol, not of a type.
> > Two symbols of the same type could be in different places (one in
> > register, one in memory).
> > Think of location lists, too.
> > I could have two symbols of the same type in completely different places
> > in memory and registers, at a given time (IE each in two different live
> > ranges).
> Yes I agree for symbol location. However, other location expressions can
> describe the lower and upper bounds of an array, or its stride,
> associative and allocatable values. These are the ones that can be
> located in the symbol's type. The main reason behind this, is that these
> other locations are based off the location of the symbol.
Sure, i agree completely with this.