This is the mail archive of the
frysk@sourceware.org
mailing list for the frysk project.
Re: New fhpd commands: ptype & plocation
- From: Phil Muldoon <pmuldoon at redhat dot com>
- To: Teresa Thomas <tthomas at redhat dot com>
- Cc: frysk <frysk at sourceware dot org>
- Date: Thu, 27 Sep 2007 07:49:35 +0100
- Subject: Re: New fhpd commands: ptype & plocation
- References: <46FAC452.4010301@redhat.com>
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