Hi,

Building into the kernel seems like a nice idea. How do I selectively
enable debug symbols for just this module? I don't want to have
symbols enabled for all my modules.

Regards,
Asim

On 8/24/08, Rajat Jain <[EMAIL PROTECTED]> wrote:
> 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: [EMAIL PROTECTED] on behalf of Asim
> Sent: Mon 25-Aug-08 7:31 AM
> To: [email protected]
> 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 [EMAIL PROTECTED]
> Please read the FAQ at http://kernelnewbies.org/FAQ
>
>
>
>

--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to [EMAIL PROTECTED]
Please read the FAQ at http://kernelnewbies.org/FAQ

Reply via email to