OSDN Git Service

gdbstub: more fixes for client Ctrl-C handling
authorAlex Bennée <alex.bennee@linaro.org>
Thu, 10 Aug 2023 15:36:39 +0000 (16:36 +0100)
committerRichard Henderson <richard.henderson@linaro.org>
Thu, 10 Aug 2023 18:04:34 +0000 (11:04 -0700)
commit3869eb7eee6f6c00d51e8ce8fd71a769f3e0bf3e
tree1e92b12bac0611eaad9d9fd79189cf65bd45b328
parentdad1036f43b55c68eb76e73ef771b252ec764b14
gdbstub: more fixes for client Ctrl-C handling

The original fix caused problems with spurious characters on other
system emulation. So:

  - instead of spamming output make the warning a trace point
  - ensure we only allow a stop reply if it was 0x3

Suggested-by: Matheus Tavares Bernardino <quic_mathbern@quicinc.com>
Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Message-Id: <456ed3318421dd7946bdfb5ceda7e05332da368c.1690910333.git.quic_mathbern@quicinc.com>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Tested-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Message-Id: <20230810153640.1879717-8-alex.bennee@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
gdbstub/gdbstub.c
gdbstub/trace-events