June 2017
Intermediate to advanced
478 pages
13h 14m
English
Although kdb does not have the features of kgdb and GDB, it does have its uses, and being self-hosted, there are no external dependencies to worry about. kdb has a simple command-line interface that you can use on a serial console. You can use it to inspect memory, registers, process lists, and dmesg and even set breakpoints to stop at a certain location.
To configure your kernel so that you can call kdb via a serial console, enable kgdb as shown previously, and then enable this additional option:
Now, when you force the kernel into a trap, instead of entering into a GDB session, you will ...
Read now
Unlock full access