https://issues.apache.org/bugzilla/show_bug.cgi?id=45792
--- Comment #28 from Ruediger Pluem <[EMAIL PROTECTED]> 2008-10-09 11:32:58
PST ---
Thanks for your patience. Please add the following to your .gdbinit:
define dump_brigade_ex
set $bb = (apr_bucket_brigade *)$arg0
set $start = $arg1
set $bucket = $bb->list.next
set $sentinel = ((char *)((&($bb->list)) \
- ((size_t) &((struct apr_bucket *)0)->link)))
printf "dump of brigade 0x%lx\n", (unsigned long)$bb
printf " | type (address) | length | "
printf "data addr | contents | rc\n"
printf "----------------------------------------"
printf "----------------------------------------\n"
if $bucket == $sentinel
printf "brigade is empty\n"
end
set $j = 0
while $bucket != $sentinel
printf "%2d", $j
if $j >= $start
dump_bucket_ex $bucket 1
end
set $j = $j + 1
set $bucket = $bucket->link.next
end
printf "end of brigade\n"
end
and in gdb please exec
dump_brigade b
dump_brigade_ex b 3
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]