On Mon, Jun 18, 2001 at 08:43:51AM -0500, Sapan Bhatia wrote:
>
> Hi--
> I'm trying to trace through the complete course of an http request being
>intercepted and handled in Apache 2.0.16... but unfortunately, even doing a run
>-DONE_PROCESS doesn't seem to work. I've compiled everything with a -g flag, and
>before calling run in gdb, set a breakpoint in ap_process_request (in
>http_request.c). I've even tried an rbreak *, but it doesn't work...
Use:
run -DONE_PROCESS -DNO_DETACH
You probably also need -DNO_DETACH to force httpd not to detach from the
tty. IIRC, GDB doesn't like debugging detached processes.
See httpd-2.0/.gdbinit in the CVS repository - the "ro" macro does this.
FWIW, I'll probably submit a patch soonish to restore the -X
functionality. -- justin