You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by yl...@apache.org on 2015/03/14 00:59:42 UTC
svn commit: r1666617 - /httpd/httpd/trunk/.gdbinit
Author: ylavic
Date: Fri Mar 13 23:59:42 2015
New Revision: 1666617
URL: http://svn.apache.org/r1666617
Log:
.gdbinit: Add dump_skiplist.
Modified:
httpd/httpd/trunk/.gdbinit
Modified: httpd/httpd/trunk/.gdbinit
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/.gdbinit?rev=1666617&r1=1666616&r2=1666617&view=diff
==============================================================================
--- httpd/httpd/trunk/.gdbinit (original)
+++ httpd/httpd/trunk/.gdbinit Fri Mar 13 23:59:42 2015
@@ -18,6 +18,25 @@ document dump_table
Print the key/value pairs in a table.
end
+define dump_skiplist
+ set $sl = (apr_skiplist *)$arg0
+ set $m = $sl->bottom
+ printf "skiplist@%p: size=%lu: height=%d\n", $sl, $sl->size, $sl->height
+ while ($m)
+ printf "(%p,%.12lx)", $m, $m->data
+ set $u = $m->up
+ while ($u)
+ printf " (%p,%.12lx)", $u, $u->data
+ set $u = $u->up
+ end
+ printf "\n"
+ set $m = $m->next
+ end
+end
+document dump_skiplist
+ Print the nodes/values in a skiplist
+end
+
define dump_string_hash
set $h = $arg0->array
set $n = $arg0->max