The debugger (--debugger
) has experimental template support. Templates dump memory in a more structured (and hopefully useful) manner than just a hex dump.
Templates.text
The {MPW}Templates.text
contains templates, which are automatically loaded when the debugger starts up. The format is basically a subset of C struct
s and typedef
s. Builtin types include: int
, long
, short
, char
, void *
, int64_t
, uint64_t
, int32_t
, uint32_t
, int16_t
, uint16_t
, int8_t
, uint8_t
, StringPtr
, CStringPtr
, Ptr
, OSType
, OSErr
, Boolean
, and Handle
. signed
, unsigned
, and volatile
qualifiers are also allowed.
typedef
s may rename a type but cannot currently be used for arrays or pointers.
Usage
expr;t templatename
Example