From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23945 invoked by alias); 27 Sep 2007 14:47:34 -0000 Received: (qmail 23932 invoked by uid 22791); 27 Sep 2007 14:47:33 -0000 X-Spam-Status: No, hits=-2.5 required=5.0 tests=AWL,BAYES_00,DK_POLICY_SIGNSOME,SPF_HELO_PASS,SPF_PASS,TW_FH X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (66.187.233.31) by sourceware.org (qpsmtpd/0.31) with ESMTP; Thu, 27 Sep 2007 14:47:31 +0000 Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.13.1/8.13.1) with ESMTP id l8RElTCC014553 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Thu, 27 Sep 2007 10:47:29 -0400 Received: from pobox.corp.redhat.com (pobox.corp.redhat.com [10.11.255.20]) by int-mx1.corp.redhat.com (8.13.1/8.13.1) with ESMTP id l8RElSir024579; Thu, 27 Sep 2007 10:47:28 -0400 Received: from [127.0.0.1] (sebastian-int.corp.redhat.com [172.16.52.221]) by pobox.corp.redhat.com (8.13.1/8.13.1) with ESMTP id l8RElRAm007588; Thu, 27 Sep 2007 10:47:27 -0400 Message-ID: <46FBC209.5050507@redhat.com> Date: Thu, 27 Sep 2007 14:47:00 -0000 From: Andrew Cagney User-Agent: Thunderbird 1.5.0.12 (X11/20070530) MIME-Version: 1.0 To: Phil Muldoon CC: Teresa Thomas , frysk Subject: Re: New fhpd commands: ptype & plocation References: <46FAC452.4010301@redhat.com> <46FB527F.2070809@redhat.com> In-Reply-To: <46FB527F.2070809@redhat.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Mailing-List: contact frysk-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: frysk-owner@sourceware.org X-SW-Source: 2007-q3/txt/msg00407.txt.bz2 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