From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25527 invoked by alias); 27 Sep 2007 06:49:41 -0000 Received: (qmail 25520 invoked by uid 22791); 27 Sep 2007 06:49:40 -0000 X-Spam-Status: No, hits=-2.3 required=5.0 tests=AWL,BAYES_00,DK_POLICY_SIGNSOME,FORGED_RCVD_HELO,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 06:49:39 +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 l8R6nbkV028866 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Thu, 27 Sep 2007 02:49:37 -0400 Received: from pobox-2.corp.redhat.com (pobox-2.corp.redhat.com [10.11.255.15]) by int-mx1.corp.redhat.com (8.13.1/8.13.1) with ESMTP id l8R6navF026988; Thu, 27 Sep 2007 02:49:36 -0400 Received: from localhost.localdomain (vpn-6-14.fab.redhat.com [10.33.6.14]) by pobox-2.corp.redhat.com (8.13.1/8.13.1) with ESMTP id l8R6nZDY015951; Thu, 27 Sep 2007 02:49:36 -0400 Message-ID: <46FB527F.2070809@redhat.com> Date: Thu, 27 Sep 2007 06:49:00 -0000 From: Phil Muldoon User-Agent: Thunderbird 2.0.0.5 (X11/20070727) MIME-Version: 1.0 To: Teresa Thomas CC: frysk Subject: Re: New fhpd commands: ptype & plocation References: <46FAC452.4010301@redhat.com> In-Reply-To: <46FAC452.4010301@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/msg00404.txt.bz2 Teresa Thomas wrote: > Two new commands have been added to fhpd: > 1) ptype : prints the type of variable/expression > 2) plocation : 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