This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Debugging kernel modules in linux-2.6
- From: "Sandeep Joshi" <sandeepjoshi dot it at gmail dot com>
- To: gdb at sourceware dot org
- Date: Wed, 13 Dec 2006 15:04:37 +0530
- Subject: Debugging kernel modules in linux-2.6
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