gdbstub_sys.c: Do not error on MSG_TYPE_BREAK

This commit is contained in:
Xavier Del Campo Romero 2023-05-23 15:51:53 +02:00
parent ca3b98cc53
commit 8349bf45e9
Signed by: xavi
GPG Key ID: 84FF3612A9BF43F2
1 changed files with 2 additions and 1 deletions

View File

@ -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;
}