From 9a446affa693dcb56728c8f88a91391126316f61 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ciro=20Santilli=20=E5=85=AD=E5=9B=9B=E4=BA=8B=E4=BB=B6=20?= =?UTF-8?q?=E6=B3=95=E8=BD=AE=E5=8A=9F?= Date: Wed, 31 Oct 2018 17:00:07 +0000 Subject: [PATCH] gdb: debug remote protocol --- README.adoc | 11 +++++++++++ 1 file changed, 11 insertions(+) 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.