You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by rp...@apache.org on 2020/06/30 20:16:19 UTC

svn commit: r1879383 - /httpd/httpd/trunk/.gdbinit

Author: rpluem
Date: Tue Jun 30 20:16:19 2020
New Revision: 1879383

URL: http://svn.apache.org/viewvc?rev=1879383&view=rev
Log:
* Use isValidAddress when dumping buckets [skip ci]

Modified:
    httpd/httpd/trunk/.gdbinit

Modified: httpd/httpd/trunk/.gdbinit
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/.gdbinit?rev=1879383&r1=1879382&r2=1879383&view=diff
==============================================================================
--- httpd/httpd/trunk/.gdbinit (original)
+++ httpd/httpd/trunk/.gdbinit Tue Jun 30 20:16:19 2020
@@ -205,12 +205,16 @@ define dump_bucket_ex
             printf " contents=["
         end
         set $datalen = $bucket->length
-        if $datalen > 17
-            printmem $data 17
-            printf "..."
-            set $datalen = 20
+        if $isValidAddress($data) == 1
+            if $datalen > 17
+                printmem $data 17
+                printf "..."
+                set $datalen = 20
+            else
+                printmemn $data $datalen
+            end
         else
-            printmemn $data $datalen
+            printf "Invalid addresss %12lx", $data
         end
         printf "]"
         while $datalen < 20