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