gdb: hio: fix error parsing

This commit is contained in:
TuxSH 2019-04-17 23:53:27 +02:00
parent 17ca09346d
commit 89e42a457c

View File

@ -125,7 +125,7 @@ GDB_DECLARE_HANDLER(HioReply)
if (*pos != 0) if (*pos != 0)
{ {
u32 errno_; u32 errno_;
pos = GDB_ParseHexIntegerList(&errno_, pos, 1, ','); pos = GDB_ParseHexIntegerList(&errno_, ++pos, 1, ',');
ctx->currentHioRequest.gdbErrno = (int)errno_; ctx->currentHioRequest.gdbErrno = (int)errno_;
if (pos == NULL) if (pos == NULL)
return GDB_ReplyErrno(ctx, EILSEQ); return GDB_ReplyErrno(ctx, EILSEQ);