mirror of
https://github.com/cirosantilli/linux-kernel-module-cheat.git
synced 2026-01-23 10:15:57 +01:00
gdb: debug remote protocol
This commit is contained in:
11
README.adoc
11
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.
|
||||
|
||||
Reference in New Issue
Block a user