Click here to Skip to main content
15,844,498 members
Please Sign up or sign in to vote.
5.00/5 (4 votes)
See more:
I am aware of debugging linux applications using gdb and ddd.
Now I have written a simple kernel module having init_module, exit _module and some functions for tasklets and workqueues.
I want to debug these kernel modules like I used to debug applications setting breakpoints etc.
How can I debug linux kernel modules?
How to attach gdb to the modules and how to set breakpoints in them?
Posted
Comments
Sergey Alexandrovich Kryukov 12-Feb-12 14:19pm    
Interesting question, I think. I voted 5. Too bad I don't know the answer.
--SA
Mohibur Rashid 12-Feb-12 21:42pm    
I wonder what google search says
krumia 14-Feb-12 10:22am    
Exactly!

1 solution

Did you see this by any chance? It's the first result from Google. http://lwn.net/Articles/90913/[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900