1af69d88dSmrgdefine tgsi_dump
2af69d88dSmrg    set $tokens=(const struct tgsi_header *)($arg0)
3af69d88dSmrg    set $nr_tokens = $tokens->HeaderSize + $tokens->BodySize
4af69d88dSmrg    set $tokens_end = &$tokens[$nr_tokens]
5af69d88dSmrg    dump memory tgsi_dump.bin $tokens $tokens_end
6af69d88dSmrgend
7