From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10202 invoked by alias); 27 Sep 2007 14:21:11 -0000 Received: (qmail 10195 invoked by uid 22791); 27 Sep 2007 14:21:11 -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 14:21:09 +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 l8REL7MF000823 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Thu, 27 Sep 2007 10:21:07 -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 l8REL6Pu009660; Thu, 27 Sep 2007 10:21:06 -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 l8REL5li029059; Thu, 27 Sep 2007 10:21:05 -0400 Message-ID: <46FBBC50.7010300@redhat.com> Date: Thu, 27 Sep 2007 14:21: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> <46FB527F.2070809@redhat.com> <46FBBA96.8050606@redhat.com> In-Reply-To: <46FBBA96.8050606@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/msg00406.txt.bz2 Teresa Thomas wrote: > Following is an example taken from /Variable.java/: > > // Get the DWARF operations that describe the variable's location > from its DIE > List ops = variableDie.getFormData(frame.getAdjustedAddress()); > // Create a LocationExpression from it > LocationExpression locationExpression = new > LocationExpression(frame, variableDie, ops); > // Decode the expression to get the location and create a > PieceLocation from it > PieceLocation pieceLocation = new > PieceLocation(locationExpression.decode(this.getType(frame).getSize())); > > pieceLocation will now contain the (list of) location(s). You can > print it by using its toPrint function, manipulate > its bytes, etc. [Refer /Location.java /and /PieceLocation.java/ (or > ping me :-) ) for its other functions] Awesome. This is perfect, thanks Regards Phil