From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5145 invoked by alias); 26 Sep 2007 20:43:15 -0000 Received: (qmail 5137 invoked by uid 22791); 26 Sep 2007 20:43:14 -0000 X-Spam-Status: No, hits=-2.4 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; Wed, 26 Sep 2007 20:43:10 +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 l8QKh8Cx032038 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Wed, 26 Sep 2007 16:43:08 -0400 Received: from pobox.toronto.redhat.com (pobox.toronto.redhat.com [172.16.14.4]) by int-mx1.corp.redhat.com (8.13.1/8.13.1) with ESMTP id l8QKgw2W003858 for ; Wed, 26 Sep 2007 16:43:07 -0400 Received: from toothpaste.toronto.redhat.com (toothpaste.toronto.redhat.com [172.16.14.161]) by pobox.toronto.redhat.com (8.12.11.20060308/8.12.11) with ESMTP id l8QKgwmu032370 for ; Wed, 26 Sep 2007 16:42:58 -0400 Message-ID: <46FAC452.4010301@redhat.com> Date: Wed, 26 Sep 2007 20:43:00 -0000 From: Teresa Thomas User-Agent: Thunderbird 2.0.0.5 (X11/20070719) MIME-Version: 1.0 To: frysk Subject: New fhpd commands: ptype & plocation 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/msg00403.txt.bz2 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. Example (attached to hpd-c): ============================ (fhpd) ptype arr_1 [0.0] long int [32] (fhpd) plocation static_int [0.0] Address 0x8049e34 - 4 byte(s) (fhpd) plocation int_21 [0.0] Register eax - 4 byte(s) ============================ For multiple pieces the output of plocation will look like: Piece 0: < location details > Piece 1: < location details > etc Any suggestions on improving the output format? Cheers, Teresa