]> granicus.if.org Git - apache/commitdiff
fix some declarations so dump_bucket and dump_brigade will work in gdb-5.3
authorBrian Pane <brianp@apache.org>
Sat, 9 Aug 2003 20:28:07 +0000 (20:28 +0000)
committerBrian Pane <brianp@apache.org>
Sat, 9 Aug 2003 20:28:07 +0000 (20:28 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@100957 13f79535-47bb-0310-9956-ffa450edef68

.gdbinit

index f60f31a48e88e20e854b363b072c25593bfdceb5..0fbe4a1a5ae5f7931fff5abe9d69298b9c58cdcc 100644 (file)
--- a/.gdbinit
+++ b/.gdbinit
@@ -68,7 +68,7 @@ end
 define dump_bucket_ex
     # arg0 == bucket
     # arg1 == suppress header?
-    set $bucket = (apr_bucket *)$arg0
+    set $bucket = (struct apr_bucket *)$arg0
     set $sh = $arg1
     set $refcount = -1
 
@@ -202,7 +202,7 @@ define dump_brigade
     set $bb = (apr_bucket_brigade *)$arg0
     set $bucket = $bb->list.next
     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 "   | type     (address)    | length | "