user1395806
user1395806

Reputation: 155

GDB for debugging Linux device drivers

I am new to using GDB debugger. I am following the link http://www.linuxforu.com/2011/01/understanding-a-kernel-oops/ I am using the same code and the same Makefile. Syslogd is running and CONFIG_DEBUG_INFO is set to y. But, I am still not successful. When I open the .ko file with GDB I get the message

No debugging symbols found

and when I use the list* command, I get

No symbol table found.

Please help me out.

Thanks!

Upvotes: 0

Views: 4024

Answers (2)

kramer
kramer

Reputation: 101

This is probably one of the quirks of building drivers out of tree. Using

CONFIG_DEBUG_INFO=1 make

when you build your driver gets you the debug symbols.

Upvotes: 1

nav_jan
nav_jan

Reputation: 2553

You can try adding -g option while compiling the modules. This option should generate debugging symbols. Cannot say exactly why your flag 'CONFIG_DEBUG_INFO' is not working.

Upvotes: 0

Related Questions