This is the mail archive of the gdb@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]

``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


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