Does GDB have some way to handle the LKM when debug the Linux-Kernel

Hui Zhu teawater@gmail.com
Thu Feb 4 07:15:00 GMT 2010


BTW I need find where is the ko file before I add-symbol-file.

On Thu, Feb 4, 2010 at 15:08, Hui Zhu <teawater@gmail.com> wrote:
> Hi,
>
> When I use GDB to debug a Kernel that running on the QEMU.  The GDB
> cannot get the debug message from lkm.
>
> I just can load this debug message with my hand:
> 1. Get the right module from modules.  It need parse the struct list.
> 2. p module->module_core get the mod address.
> 3. add-symbol-file mode.ko address
>
> Do we have some easy way to handle it?
>
> Thanks,
> Hui
>



More information about the Gdb mailing list