diff --git a/README.adoc b/README.adoc index 07f7ea6..ae64c9b 100644 --- a/README.adoc +++ b/README.adoc @@ -1824,6 +1824,17 @@ Bibliography: * https://wiki.linaro.org/LandingTeams/ST/GDB * https://events.static.linuxfound.org/sites/events/files/slides/Debugging%20the%20Linux%20Kernel%20with%20GDB.pdf presentation: https://www.youtube.com/watch?v=pqn5hIrz3A8 +=== Debug the GDB remote protocol + +For when it breaks again, or you want to add a new feature! + +.... +./run --debug +./run-gdb --before '-ex "set remotetimeout 99999" -ex "set debug remote 1"' start_kernel +.... + +See also: https://stackoverflow.com/questions/13496389/gdb-remote-protocol-how-to-analyse-packets + == KGDB KGDB is kernel dark magic that allows you to GDB the kernel on real hardware without any extra hardware support.