June 2017
Intermediate to advanced
478 pages
13h 14m
English
When looking at kernel code using a source debugger, you must remember that the kernel is a complex system, with real-time behaviors. Don't expect debugging to be as easy as it is for applications. Stepping through code that changes the memory mapping or switches context is likely to produce odd results.
kgdb is the name given to the kernel GDB stubs that have been part of mainline Linux for many years now. There is a user manual in the kernel DocBook, and you can find an online version at https://www.kernel.org/doc/htmldocs/kgdb/index.html.
In most cases, you will connect to kgdb over the serial interface, which is usually shared with the serial console. Hence, this implementation is called kgdboc, which is ...
Read now
Unlock full access