diff options
| author | Xavier Del Campo Romero <xavi.dcr@tutanota.com> | 2023-05-23 15:51:53 +0200 |
|---|---|---|
| committer | Xavier Del Campo Romero <xavi.dcr@tutanota.com> | 2023-05-23 15:51:53 +0200 |
| commit | 8349bf45e9b19d83506e1bb52f2053a7976922e5 (patch) | |
| tree | aa0b9ea1fbcc3870b444d776a6a60a0d0260f4b3 | |
| parent | ca3b98cc53a15a627c48e281a37e9665f36c879d (diff) | |
| -rw-r--r-- | gdbstub/gdbstub_sys.c | 3 |
1 files changed, 2 insertions, 1 deletions
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; } |
