Hi, * Miroslav Maiksnar <[EMAIL PROTECTED]> [2006-02-09 07:05:48]:
> I'm trying debug mod_spnego in gdb, but it looks apache2 does not load debug > info for module (I can't see source). What is the proper way to debug apache > modules using debuger? > > Currently I have compiled apache2 (2.0.54, debian sarge) with debug info and > module using: > > $ apxs2 -c -a -i -D HEIMDAL -I... -L... -l... mod_spnego.c Are you _sure_ Apache HTTPD have been compiled with debug info properly ? In order to debug correctly, you must have APR, APR-Util, Apahce HTTPD and your module compiled with debugging symbols and without any optimisations (aka with -g or -ggdb or -ggdb3 and without -Ox or -OS). When this is done, do $ gdb httpd gdb> break your_breakpoint gdb> run -X And then do your request, gdb should wait for you at your breakpoint. - Sam -- Maxime Petazzoni (http://www.bulix.org) -- gone crazy, back soon. leave message.
signature.asc
Description: Digital signature
