New fhpd commands: ptype & plocation

Teresa Thomas tthomas@redhat.com
Wed Sep 26 20:43:00 GMT 2007


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



More information about the Frysk mailing list