gdbstub: use a better signal when we halt for IO reasons
commit5dcf6334ae1af158ec149794c3f35e459b98df5e
authorAlex Bennée <alex.bennee@linaro.org>
Fri, 1 Dec 2023 09:36:27 +0000 (1 09:36 +0000)
committerAlex Bennée <alex.bennee@linaro.org>
Fri, 1 Dec 2023 14:00:52 +0000 (1 14:00 +0000)
tree58d457341d13e2102edc1ee9174ef3ba83bada31
parentabf635ddfe3242df907f58967f3c1e6763bbca2d
gdbstub: use a better signal when we halt for IO reasons

The gdb description GDB_SIGNAL_IO is "I/O possible" and by default gdb
will try and restart the guest, getting us nowhere. Report
GDB_SIGNAL_STOP instead which should at least halt the session at the
failure point.

Reviewed-by: Luis Machado <luis.machado@arm.com>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Acked-by: Stefan Hajnoczi <stefanha@redhat.com>
Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Message-Id: <20231201093633.2551497-2-alex.bennee@linaro.org>
gdbstub/internals.h
gdbstub/system.c