public inbox for frysk@sourceware.org
 help / color / mirror / Atom feed
From: Phil Muldoon <pmuldoon@redhat.com>
To: Teresa Thomas <tthomas@redhat.com>
Cc: frysk <frysk@sourceware.org>
Subject: Re: New fhpd commands: ptype & plocation
Date: Thu, 27 Sep 2007 14:21:00 -0000	[thread overview]
Message-ID: <46FBBC50.7010300@redhat.com> (raw)
In-Reply-To: <46FBBA96.8050606@redhat.com>

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

  reply	other threads:[~2007-09-27 14:21 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-09-26 20:43 Teresa Thomas
2007-09-27  6:49 ` Phil Muldoon
2007-09-27 14:14   ` Teresa Thomas
2007-09-27 14:21     ` Phil Muldoon [this message]
2007-09-27 14:47   ` Andrew Cagney
2007-09-27 14:53     ` Phil Muldoon

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=46FBBC50.7010300@redhat.com \
    --to=pmuldoon@redhat.com \
    --cc=frysk@sourceware.org \
    --cc=tthomas@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).