forked from auracaster/openocd
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 <tim@sifive.com> Signed-off-by: Tomas Vanek <vanekt@fbl.cz> Reviewed-on: https://review.openocd.org/c/openocd/+/8920 Tested-by: jenkins Reviewed-by: Antonio Borneo <borneo.antonio@gmail.com>
This commit is contained in:
committed by
Antonio Borneo
parent
9b30e05137
commit
bde7e86e8e
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user