From 1f2d949091eb6671bea1002e43242b2d67abd2b5 Mon Sep 17 00:00:00 2001 From: Rafael Silva Date: Thu, 19 Dec 2024 14:10:53 +0000 Subject: [PATCH] gdb_packet: add note on gdb remote protocol debugging This information is hard to find, so while not directly related to BMD it is useful while developing. Adding it for future developer reference --- src/gdb_packet.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/gdb_packet.c b/src/gdb_packet.c index acc0051be3a..89994ee63ef 100644 --- a/src/gdb_packet.c +++ b/src/gdb_packet.c @@ -81,6 +81,10 @@ void gdb_set_noackmode(bool enable) } #ifndef DEBUG_GDB_IS_NOOP +/* + * To see what packets GDB is seeing you can enable remote protocol debugging with: + * `(gdb) set debug remote 1` + */ static void gdb_packet_debug(const char *const func, const gdb_packet_s *const packet) { /* Log packet for debugging */