This is the mail archive of the
frysk@sourceware.org
mailing list for the frysk project.
Re: New fhpd commands: ptype & plocation
- From: Andrew Cagney <cagney at redhat dot com>
- To: Phil Muldoon <pmuldoon at redhat dot com>
- Cc: Teresa Thomas <tthomas at redhat dot com>, frysk <frysk at sourceware dot org>
- Date: Thu, 27 Sep 2007 10:45:29 -0400
- Subject: Re: New fhpd commands: ptype & plocation
- References: <46FAC452.4010301@redhat.com> <46FB527F.2070809@redhat.com>
Phil Muldoon wrote:
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?
Phil,
I wouldn't become too attached to this command's implementation as it
currently stands; rather just view it as a a glimpse of what is to
come. That command reports the expression's result's location which
isn't sufficient; instead a walk of the expression tree that generates a
list of all referenced locations is going to be needed.
I would define the frysk.proc. object interface that you require and
expect the location tree walk code to generate that that information;
rather than try to have frysk.proc directly access frysk.debuginfo.
Andrew