gdbstub: Convert GDB error numbers to host error numbers
commitc805e118754a2c90c29219985ba389829d4a53a4
authorRichard Henderson <richard.henderson@linaro.org>
Tue, 7 Jun 2022 19:38:26 +0000 (7 12:38 -0700)
committerRichard Henderson <richard.henderson@linaro.org>
Mon, 27 Jun 2022 23:05:07 +0000 (28 04:35 +0530)
tree7aacb825b8c96218f3b81af10c4cc631d5aa30dc
parent9814483d6346fb697c9f852f3a1edab0b6910486
gdbstub: Convert GDB error numbers to host error numbers

Provide the callback with consistent state -- always use
host error numbers.  The individual callback can then
decide if the errno requires conversion for the guest.

Reviewed-by: Luc Michel <lmichel@kalray.eu>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
gdbstub.c