tech-toolchain archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: kernel module with debugging info



In article <x7a599qg65.fsf%ren.fdy2.co.uk@localhost>,
Robert Swindells  <rjs%fdy2.co.uk@localhost> wrote:
>
>Peter Skvarka <ps%softinengines.com@localhost> wrote:
>> I must correct my question.
>>
>> I need to debug kernel module or investigate core dump to see stack 
>> where it crashes.
>>
>> I am trying to find how to retrieve base address of loaded kernel module 
>> and how put debug symbols into gdb to debug it with two machines or to 
>> investigate crash dump.
>>
>> Where can I found more info on this topic ?
>
>Why not just build the driver into the kernel?
>
>Deliver it as a module when it all works.

Symbolic debugging in modules works. See:

    /usr/src/sys/gdbscripts/module
    /usr/src/sys/gdbscripts/modload

christos



Home | Main Index | Thread Index | Old Index