100个gdb小技巧
https://wizardforcel.gitbooks.io/100-gdb-tips/index.html
循环
set $seq=0
while ($seq < 32)
set $seq++
end
-
宏定义
define dump_history
set var $slab_id = $arg0
set var $object = $arg1
set var $history_info = ((slab_context_t*)($slab_id + 64))->history_info
set var $begin_idx = (uint64_t)((history_info_t *)($history_info))->history_idx[0]