Skip to content

Commit

Permalink
fix hash dump gdb function
Browse files Browse the repository at this point in the history
  • Loading branch information
anthmFS committed Jan 21, 2015
1 parent 90ab1d1 commit 15a7ff2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion support-d/.gdbinit
Original file line number Diff line number Diff line change
Expand Up @@ -29,14 +29,16 @@ define hash_it_str
set $i = 0
set $idx = 0
set $len = $arg0->tablelength
printf "len: %d\n", $arg0->tablelength

while($idx < $len)
set $x=$arg0->table->[$idx]
set $x = $arg0->table[$idx]
while($x != 0x0)
printf "key: %s valueptr: %p\n", $x->k, $x->v
set $x = $x->next
set $i = $i + 1
end
set $idx = $idx + 1
end
end
document hash_it_str
Expand Down

0 comments on commit 15a7ff2

Please sign in to comment.