This is an automated email from Gerrit.

"Tomas Vanek <van...@fbl.cz>" just uploaded a new patch set to Gerrit, which 
you can find at https://review.openocd.org/c/openocd/+/8920

-- gerrit

commit d4a8f592f7583c87fdb858f9d218b95caa3421bb
Author: Tomas Vanek <van...@fbl.cz>
Date:   Sun May 18 21:25:35 2025 +0200

    server/gdb_server: do not discard Ctrl-C if _DEBUG_GDB_IO_
    
    GDB server debug logging eat Ctrl-C when gdb user issues interrupt
    in time of communication between OpenOCD and gdb.
    E.g. Ctrl-C after `next` gdb command taking many
    gdb remote protocol $vCont;s (steps)
    
    Change-Id: I4a65446a9bb25a28e50566607b3dec116fa7d2cd
    Suggested-by: Tim Newsome <t...@sifive.com>
    Signed-off-by: Tomas Vanek <van...@fbl.cz>

diff --git a/src/server/gdb_server.c b/src/server/gdb_server.c
index 71b7c7764a..bd00feb490 100644
--- a/src/server/gdb_server.c
+++ b/src/server/gdb_server.c
@@ -434,6 +434,10 @@ static int gdb_put_packet_inner(struct connection 
*connection,
                        gdb_putback_char(connection, reply);
                        LOG_DEBUG("Unexpected start of new packet");
                        break;
+               } else if (reply == 0x3) {
+                       /* do not discard Ctrl-C */
+                       gdb_putback_char(connection, reply);
+                       break;
                }
 
                LOG_WARNING("Discard unexpected char %c", reply);

-- 

Reply via email to