This is the mail archive of the frysk@sourceware.org mailing list for the frysk 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: New fhpd commands: ptype & plocation


Teresa Thomas wrote:
Two new commands have been added to fhpd:
1) ptype <VariableName/expr> : prints the type of variable/expression
2) plocation <VariableName> : prints the location of variable, displaying any memory split if present.



Nice bit of "just in time" here as I will soon be using this stuff for watchpoints (ie translating a variable to a location, or locations).


Apart from the output code, and parsing code in fhpd, is the "get the location" code placed in a utility class somewhere? Can you give a programming example of given variable foo, how to get a location or locations in memory of where it resides?

Regards

Phil


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