1848b8605Smrgdefine tgsi_dump
2848b8605Smrg    set $tokens=(const struct tgsi_header *)($arg0)
3848b8605Smrg    set $nr_tokens = $tokens->HeaderSize + $tokens->BodySize
4848b8605Smrg    set $tokens_end = &$tokens[$nr_tokens]
5848b8605Smrg    dump memory tgsi_dump.bin $tokens $tokens_end
6848b8605Smrgend
7