2 Debug Templates
ksherlock edited this page 2015-01-07 08:41:44 -05:00

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 structs and typedefs. 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.

typedefs may rename a type but cannot currently be used for arrays or pointers.

Usage

expr;t templatename

Example