httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From do...@apache.org
Subject cvs commit: httpd-2.0 .gdbinit
Date Thu, 22 Nov 2001 01:07:38 GMT
dougm       01/11/21 17:07:38

  Modified:    .        .gdbinit
  Log:
  macros for dumping the list of server_recs
  
  Revision  Changes    Path
  1.8       +32 -0     httpd-2.0/.gdbinit
  
  Index: .gdbinit
  ===================================================================
  RCS file: /home/cvs/httpd-2.0/.gdbinit,v
  retrieving revision 1.7
  retrieving revision 1.8
  diff -u -r1.7 -r1.8
  --- .gdbinit	2001/07/18 18:44:45	1.7
  +++ .gdbinit	2001/11/22 01:07:38	1.8
  @@ -84,3 +84,35 @@
   document dump_filters
       Print filter chain info
   end
  +
  +define dump_process_rec
  +    set $p = $arg0
  +    printf "process_rec=0x%lx:\n", (unsigned long)$p
  +    printf "   pool=0x%lx, pconf=0x%lx\n", \
  +           (unsigned long)$p->pool, (unsigned long)$p->pconf
  +end
  +document dump_process_rec
  +    Print process_rec info
  +end
  +
  +define dump_server_rec
  +    set $s = $arg0
  +    printf "name=%s:%d\n", \
  +            $s->server_hostname, $s->port
  +    dump_process_rec($s->process)
  +end
  +document dump_server_rec
  +    Print server_rec info
  +end
  +
  +define dump_servers
  +    set $s = $arg0
  +    while $s
  +        dump_server_rec($s)
  +        printf "\n"
  +        set $s = $s->next
  +    end
  +end
  +document dump_servers
  +    Print server_rec list info
  +end
  
  
  

Mime
View raw message