You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by yl...@apache.org on 2020/05/26 22:44:01 UTC

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

Author: ylavic
Date: Tue May 26 22:44:01 2020
New Revision: 1878140

URL: http://svn.apache.org/viewvc?rev=1878140&view=rev
Log:
.gdbinit: align columns [skip ci]

Modified:
    httpd/httpd/trunk/.gdbinit

Modified: httpd/httpd/trunk/.gdbinit
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/.gdbinit?rev=1878140&r1=1878139&r2=1878140&view=diff
==============================================================================
--- httpd/httpd/trunk/.gdbinit (original)
+++ httpd/httpd/trunk/.gdbinit Tue May 26 22:44:01 2020
@@ -157,7 +157,7 @@ define dump_bucket_ex
         set $fd = ((apr_bucket_file*)$bucket->data)->fd->filedes
         print_bkt_datacol "contents" "[***file***] fd=%-6ld" (long)$fd $sh
         set $refcount = ((apr_bucket_refcount *)$bucket->data)->refcount
-        print_bkt_datacol "rc" "%d" $refcount $sh
+        print_bkt_datacol "rc" "%-3d" $refcount $sh
 
     else
     if (($bucket->type == &apr_bucket_type_heap)      || \
@@ -219,7 +219,7 @@ define dump_bucket_ex
         end
 
         if $refcount != -1
-            print_bkt_datacol "rc" "%d" $refcount $sh
+            print_bkt_datacol "rc" "%-3d" $refcount $sh
         else
             print_bkt_datacol "rc" "n/%c" 'a' $sh
         end
@@ -228,25 +228,25 @@ define dump_bucket_ex
         if ($bucket->type == &apr_bucket_type_pipe)
 
             # pipe bucket, can show fd
-            set $fd = ((apr_file_t*)$bucket->data)->filedes;
-            print_bkt_datacol "contents" "[***pipe***] fd=%-6ld" (long)$fd $sh
+            set $fd = ((apr_file_t*)$bucket->data)->filedes
+            print_bkt_datacol "contents" "[***pipe***] fd=%-3ld" (long)$fd $sh
 
         else
         if ($bucket->type == &apr_bucket_type_socket)
 
             # file bucket, can show fd
-            set $fd = ((apr_socket_t*)$bucket->data)->socketdes;
-            print_bkt_datacol "contents" "[**socket**] fd=%-6ld" (long)$fd $sh
+            set $fd = ((apr_socket_t*)$bucket->data)->socketdes
+            print_bkt_datacol "contents" "[**socket**] fd=%-3ld" (long)$fd $sh
 
         else
 
             # 3rd-party bucket type
-            print_bkt_datacol "contents" "[**opaque**]%-10c" ' ' $sh
+            print_bkt_datacol "contents" "[**opaque**]%-7c" ' ' $sh
         end
         end
 
         # no refcount
-        printf "         "
+        printf "   "
         print_bkt_datacol "rc" "n/%c" 'a' $sh
     end
     end
@@ -273,7 +273,7 @@ define dump_brigade
 
     printf "   | type     (address)      | length | "
     printf "data address | contents               | rc\n"
-    printf "------------------------------------------"
+    printf "-------------------------------------------"
     printf "----------------------------------------\n"
 
     if $bucket == $sentinel