Hi,
If you are loading that module at the run
time, the GDB won't find its debug symbols. You need to firstly ensure that the
module is compiled with debug info, and then you need to manually load its debug
/ symbol info into the gdb (using "file" command?). There is also a script
available at linsyssoft site that allows KGDB to debug modules. However, the
easiest way to cut down all setup time is to build the modules into kernel image
and debug it the normal way ...
HTH,
Rajat
From: kernelnewbies-bounce@xxxxxxxxxxxx on behalf of Asim
Sent: Mon 25-Aug-08 7:31 AM
To: kernelnewbies@xxxxxxxxxxxx
Subject: Debugging a module
Hi,
I'm having problems debugging a driver (e1000). The
driver is failing
at init stage but I'm not able to get the exact location of
the
failure. I'm using gdb for live kernel debugging but not getting
any
symbols within the driver (I can see gdb taking me into
the
module.init call).
Any ideas how I can turn on the debugging for
this particular module?
Are there any particular flags that I need to set in
the
drivers/net/e1000/Makefile.
Regards,
Asim
--
To
unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to
ecartis@xxxxxxxxxxxx
Please read the FAQ at http://kernelnewbies.org/FAQ