You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by do...@locus.apache.org on 2000/12/20 06:38:34 UTC

cvs commit: httpd-2.0 .gdbinit

dougm       00/12/19 21:38:34

  Modified:    .        .gdbinit
  Log:
  update this lil gem
  
  Revision  Changes    Path
  1.3       +4 -4      httpd-2.0/.gdbinit
  
  Index: .gdbinit
  ===================================================================
  RCS file: /home/cvs/httpd-2.0/.gdbinit,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- .gdbinit	1999/08/26 06:23:55	1.2
  +++ .gdbinit	2000/12/20 05:38:34	1.3
  @@ -2,8 +2,8 @@
   # apache.  Delete it if it bothers you.
   
   define dump_table
  -    set $t = (table_entry *)((array_header *)$arg0)->elts
  -    set $n = ((array_header *)$arg0)->nelts
  +    set $t = (apr_table_entry_t *)((apr_array_header_t *)$arg0)->elts
  +    set $n = ((apr_array_header_t *)$arg0)->nelts
       set $i = 0
       while $i < $n
   	printf "[%u] '%s'='%s'\n", $i, $t[$i].key, $t[$i].val
  @@ -20,8 +20,8 @@
   end
   
   define dump_string_array
  -    set $a = (char **)((array_header *)$arg0)->elts
  -    set $n = (int)((array_header *)$arg0)->nelts
  +    set $a = (char **)((apr_array_header_t *)$arg0)->elts
  +    set $n = (int)((apr_array_header_t *)$arg0)->nelts
       set $i = 0
       while $i < $n
   	printf "[%u] '%s'\n", $i, $a[$i]