This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
``struct location''
- From: Andrew Cagney <ac131313 at ges dot redhat dot com>
- To: gdb at sources dot redhat dot com
- Date: Mon, 08 Jul 2002 22:59:58 -0400
- Subject: ``struct location''
Hello,
This is a hunch.
I think there should be a ``struct location'' object to go with the
``struct type'' object. The ``struct value'' object would then be made
of, the TYPE, LOCATION and, once the value has been read from memory,
its VALUE.
This would make it possible for location expression evaluators and
similar (e.g., unwind functions describing register locations) to return
a ``location'' without any need to refer to types.
Having the location as an abstraction would also make it possible for
GDB's ``location'' code to evolve independantly of the ``struct value''
- this is something we know we need since at present GDB can't describe
things like values with a location that spreads across multiple
registers and memory.
thoughts?
Andrew