提交 15a7ff25 authored 作者: Anthony Minessale's avatar Anthony Minessale

fix hash dump gdb function

上级 90ab1d16
...@@ -29,14 +29,16 @@ define hash_it_str ...@@ -29,14 +29,16 @@ define hash_it_str
set $i = 0 set $i = 0
set $idx = 0 set $idx = 0
set $len = $arg0->tablelength set $len = $arg0->tablelength
printf "len: %d\n", $arg0->tablelength
while($idx < $len) while($idx < $len)
set $x=$arg0->table->[$idx] set $x = $arg0->table[$idx]
while($x != 0x0) while($x != 0x0)
printf "key: %s valueptr: %p\n", $x->k, $x->v printf "key: %s valueptr: %p\n", $x->k, $x->v
set $x = $x->next set $x = $x->next
set $i = $i + 1 set $i = $i + 1
end end
set $idx = $idx + 1
end end
end end
document hash_it_str document hash_it_str
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论