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: [可能是垃圾邮件] Re: how to debug module using gdb
Date Fri, 29 Feb 2008 07:29:47 GMT
hi meendar:
i am a new monkey at apache. can you give me a detail explanation
.thanks you

meendar wrote:
> wangyz wrote:
>   
>> thanks again.
>> I sure that i had compiled a debug version. and gdb had load the library.
>>
>>
>> Jarek Kucypera wrote:
>>   
>>     
>>>> 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.
>>>>
>>>>   
>>>>     
>>>>       
>>>>         
>>> Hmm, have you compiled your module with debug info ? Are you sure httpd
>>> loads your module ?
>>> I use gdb 6.7.1 on linux and it nicely delays setting breakpoints in
>>> not-yet-existing code until particuar
>>> shared library is loaded (i.e. when setting such breakpoint, it stores
>>> it as "unresolved" and resolves
>>> it while loading the library).
>>>
>>> J.K.
>>>
>>>
>>>
>>>   
>>>     
>>>       
>>
>>
>>   
>>     
> Make sure you compile with optimization level 0, that is *O0* flag in
> your gcc, by default apache configure_vars.mk having *O2* level.
>
>
>
>   




Mime
View raw message