gdb: debug remote protocol

This commit is contained in:
Ciro Santilli 六四事件 法轮功
2018-10-31 17:00:07 +00:00
parent 76418edbac
commit 9a446affa6

View File

@@ -1824,6 +1824,17 @@ Bibliography:
* https://wiki.linaro.org/LandingTeams/ST/GDB * 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 * 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
KGDB is kernel dark magic that allows you to GDB the kernel on real hardware without any extra hardware support. KGDB is kernel dark magic that allows you to GDB the kernel on real hardware without any extra hardware support.