From 8349bf45e9b19d83506e1bb52f2053a7976922e5 Mon Sep 17 00:00:00 2001 From: Xavier Del Campo Romero Date: Tue, 23 May 2023 15:51:53 +0200 Subject: [PATCH] gdbstub_sys.c: Do not error on MSG_TYPE_BREAK --- gdbstub/gdbstub_sys.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gdbstub/gdbstub_sys.c b/gdbstub/gdbstub_sys.c index bd966b29..39322f23 100644 --- a/gdbstub/gdbstub_sys.c +++ b/gdbstub/gdbstub_sys.c @@ -258,7 +258,8 @@ static int wait_ack(struct msg *msg) ret = mq_receive(in_queue, (char *)msg, sizeof *msg, 0); } while (ret < 0 && errno == EAGAIN); - if (msg->type != MSG_TYPE_ACK) { + if (msg->type != MSG_TYPE_ACK + && msg->type != MSG_TYPE_BREAK) { fprintf(stderr, "wait_ack: unexpected msg.type %d\n", msg->type); return 1; }