head     1.1;
branch   1.1.1;
access   ;
symbols  start:1.1.1.1 source:1.1.1;
locks    ; strict;
comment  @# @;


1.1
date     2002.08.14.03.06.17;  author pools2;  state Exp;
branches 1.1.1.1;
next     ;

1.1.1.1
date     2002.08.14.03.06.17;  author pools2;  state Exp;
branches ;
next     ;


desc
@@



1.1
log
@Initial revision
@
text
@# gdb macros which may be useful for folks using gdb to debug
# 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 $i = 0
    while $i < $n
	printf "[%u] '%s'='%s'\n", $i, $t[$i].key, $t[$i].val
	set $i = $i + 1
    end
end
document dump_table
    Print the key/value pairs in a table.
end

define dump_string_array
    set $a = (char **)((array_header *)$arg0)->elts
    set $n = (int)((array_header *)$arg0)->nelts
    set $i = 0
    while $i < $n
	printf "[%u] '%s'\n", $i, $a[$i]
	set $i = $i + 1
    end
end
document dump_string_array
    Print all of the elements in an array of strings.
end
@


1.1.1.1
log
@Apache Easy 0.0.1
@
text
@@
