]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
* .gdbinit (dump_bucket_ex): Use a string comparison with the bucket
authorJoe Orton <jorton@apache.org>
Mon, 9 Jan 2023 10:09:46 +0000 (10:09 +0000)
committerJoe Orton <jorton@apache.org>
Mon, 9 Jan 2023 10:09:46 +0000 (10:09 +0000)
  type name rather than a type pointer comparison, so this .gdbinit is
  usable outside httpd.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1906481 13f79535-47bb-0310-9956-ffa450edef68

.gdbinit

index 1988dea29e9af119df7b897c324113d67210d21f..f748b05e2f82073580a8895a89cd46a21470b65b 100644 (file)
--- a/.gdbinit
+++ b/.gdbinit
@@ -142,7 +142,7 @@ define dump_bucket_ex
         print_bkt_datacol "rc" "n/%c" 'a' $sh
 
     else
-    if ($bucket->type == &ap_bucket_type_error)
+    if ($_streq($bucket->type->name, "ERROR"))
 
         # metadata bucket, no content but it does have an error code in it
         print_bkt_datacol "contents" "%c" ' ' $sh