gdbstub_sys.c: Do not error on MSG_TYPE_BREAK
This commit is contained in:
parent
ca3b98cc53
commit
8349bf45e9
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue