httpd-modules-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From wangyz <wan...@tongtech.com>
Subject Re: [可能是垃圾邮件] Re: how to debug module using gdb
Date Thu, 28 Feb 2008 03:00:46 GMT
thanks J.K.

I have done as you said. start httpd within gdb.
but it seemed that it is not useful. i can not still step into my function.


for example i want to debug these code.
static void apache_register_hooks(apr_pool_t *p)
{
ap_hook_post_config(myfunction, NULL, NULL, APR_HOOK_MIDDLE);
}

this is my process :
1. gdb httpd
2. b apache_register_hooks
3. b myfunction
4. run -X -d /apache2.0.54
5. I make a request from another window

after i done . gdb only stop at apache_register_hooks,but it can not
stop at myfunction





Jarek Kucypera wrote:
>> 3. gdb attach httpd and set breakpoints
>>   
>>     
> If you attach to running httpd, all config hooks have already executed,
> try starting httpd from within gdb.
>
> J.K.
>
>
>
>
>   




Mime
View raw message