Skip to content

Commit

Permalink
gdb_packet: add note on gdb remote protocol debugging
Browse files Browse the repository at this point in the history
This information is hard to find, so while not directly related to BMD it is useful while developing.
Adding it for future developer reference
  • Loading branch information
perigoso authored and Rafael Silva committed Dec 19, 2024
1 parent 223a1ad commit 1f2d949
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/gdb_packet.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down

0 comments on commit 1f2d949

Please sign in to comment.