From b16e55da30a66334d59073b5faa807e54989528f Mon Sep 17 00:00:00 2001 From: Rafael Silva Date: Fri, 19 Aug 2022 15:14:40 +0100 Subject: [PATCH] gdb_main: don't print debug for vMustReplyEmpty packets --- src/gdb_main.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/gdb_main.c b/src/gdb_main.c index 95ad707..b6bdc15 100644 --- a/src/gdb_main.c +++ b/src/gdb_main.c @@ -668,7 +668,10 @@ static void handle_v_packet(char *packet, const size_t plen) gdb_putpacketz("OK"); } else { - DEBUG_GDB("*** Unsupported packet: %s\n", packet); + /* The vMustReplyEmpty is used as a feature test to check how gdbserver handles unknown packets */ + /* print only actually unknown packets */ + if (strcmp(packet, "vMustReplyEmpty") != 0) + DEBUG_GDB("*** Unsupported packet: %s\n", packet); gdb_putpacket("", 0); } }