Debugging kernel modules in linux-2.6

Sandeep Joshi sandeepjoshi.it@gmail.com
Wed Dec 13 09:34:00 GMT 2006


Hi all,
I am trying to debug kernel modules in linux-2.6 using the
add-symbol-file command i.e loading vmlinux first and then loading the
module file.

In linux-2.4 i was able to debug the module and it also shows the
correct sources but in linux-2.6, although it is able the debug
correctly, but does not show the sources correct.

THE INTERESTING PART is if i build the kernel with -gstabs option  i
can debug the module with correct sources.
Iam not able to get this. plz help



More information about the Gdb mailing list