public inbox for frysk@sourceware.org
 help / color / mirror / Atom feed
* New fhpd commands: ptype & plocation
@ 2007-09-26 20:43 Teresa Thomas
  2007-09-27  6:49 ` Phil Muldoon
  0 siblings, 1 reply; 6+ messages in thread
From: Teresa Thomas @ 2007-09-26 20:43 UTC (permalink / raw)
  To: frysk

Two new commands have been added to fhpd:
1) ptype <VariableName/expr> :  prints the type of variable/expression
2) plocation <VariableName> : 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

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2007-09-27 14:53 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-09-26 20:43 New fhpd commands: ptype & plocation Teresa Thomas
2007-09-27  6:49 ` Phil Muldoon
2007-09-27 14:14   ` Teresa Thomas
2007-09-27 14:21     ` Phil Muldoon
2007-09-27 14:47   ` Andrew Cagney
2007-09-27 14:53     ` Phil Muldoon

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).