Module debugging using kgdb

From: Amit S. Kale (
Date: Wed May 24 2000 - 05:27:32 EST


gdb had a bug due to which addresses of symbols in object files
loaded using 'add-symbol-file' command were calculated incorrectly.
This caused problems in debugging modules using kgdb, source level
debugger stub for linux kernel.

This gdb problem has been fixed now. Please visit
to get a script '' which loads a module and
generates a gdb script. The gdb script loads module file into
gdb at correct addresses.

You need a new gdb to use above script. I have placed there
a prebuilt version for RedHat 6.2

(Some guys had experienced gdb and gcc going out of sync
wrt line number info for modules. This problem is not directly
related to above mentioned gdb bug. But I hope using new gdb may
be a workaround for that also. I have been using above script
and gdb successfully for some time.)


Amit Kale
Veritas Software ( )

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to Please read the FAQ at

This archive was generated by hypermail 2b29 : Wed May 31 2000 - 21:00:11 EST