]> git.proxmox.com Git - mirror_qemu.git/commit
gdbstub: Switch to the thread receiving a signal
authorPavel Labath <pavel@labath.sk>
Tue, 26 Oct 2021 10:22:34 +0000 (11:22 +0100)
committerAlex Bennée <alex.bennee@linaro.org>
Thu, 4 Nov 2021 10:32:01 +0000 (10:32 +0000)
commit4a82be77de9dcfe37c3a8257953737f2b3c9b9d7
treee67ef144901bacbb278b277bbc40d2e7f2e901a4
parent8ef3fdf952f061df6a9b30008bd8de9dfaa32435
gdbstub: Switch to the thread receiving a signal

Respond with Txxthread:yyyy; instead of a plain Sxx to indicate which
thread received the signal. Otherwise, the debugger will associate it
with the main one. Also automatically select this thread, as that is
what gdb expects.

Signed-off-by: Pavel Labath <pavel@labath.sk>
Message-Id: <20211019174953.36560-1-pavel@labath.sk>
Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20211026102234.3961636-29-alex.bennee@linaro.org>
gdbstub.c
tests/tcg/multiarch/Makefile.target
tests/tcg/multiarch/gdbstub/test-thread-breakpoint.py [new file with mode: 0644]