httpd-modules-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From wangyz <wan...@tongtech.com>
Subject how to debug module using gdb
Date Wed, 27 Feb 2008 09:35:27 GMT
hello everyone:
I am learning
EnhydraDirector(http://www.enhydra.org/tech/director/index.html) which
is apache plugin .but i met a difficult question. during debugging this
plugin,if i met hook function such as ap_hook_post_config,
ap_hook_handler. i can not went into EnhydraDirector code. gdb hint me
config.c did not be found.

my env:
linux 2.4.20-8.

this is my process.
1. compile and install apache2.0.54.this is my command.
./configure --prefix=/home/build/http2054 --enable-rule=SHARED_CORE
--enable-module=so --enable-maintainer-mode
make
make install.
2. using apache's "-X" option to start the server in single process mode:
httpd -X
3. gdb attach httpd and set breakpoints

hope your answer. thanks in advance





Mime
View raw message