mirror of
https://github.com/apache/httpd.git
synced 2025-08-16 17:04:42 +00:00
fix some declarations so dump_bucket and dump_brigade will work in gdb-5.3
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@100957 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
4
.gdbinit
4
.gdbinit
@ -68,7 +68,7 @@ end
|
|||||||
define dump_bucket_ex
|
define dump_bucket_ex
|
||||||
# arg0 == bucket
|
# arg0 == bucket
|
||||||
# arg1 == suppress header?
|
# arg1 == suppress header?
|
||||||
set $bucket = (apr_bucket *)$arg0
|
set $bucket = (struct apr_bucket *)$arg0
|
||||||
set $sh = $arg1
|
set $sh = $arg1
|
||||||
set $refcount = -1
|
set $refcount = -1
|
||||||
|
|
||||||
@ -202,7 +202,7 @@ define dump_brigade
|
|||||||
set $bb = (apr_bucket_brigade *)$arg0
|
set $bb = (apr_bucket_brigade *)$arg0
|
||||||
set $bucket = $bb->list.next
|
set $bucket = $bb->list.next
|
||||||
set $sentinel = ((char *)((&($bb->list)) \
|
set $sentinel = ((char *)((&($bb->list)) \
|
||||||
- ((size_t) &((apr_bucket *)0)->link)))
|
- ((size_t) &((struct apr_bucket *)0)->link)))
|
||||||
printf "dump of brigade 0x%lx\n", (unsigned long)$bb
|
printf "dump of brigade 0x%lx\n", (unsigned long)$bb
|
||||||
|
|
||||||
printf " | type (address) | length | "
|
printf " | type (address) | length | "
|
||||||
|
Reference in New Issue
Block a user