]> git.ipfire.org Git - thirdparty/qemu.git/commit
linux-user/arm: Set siginfo_t addr field for SIGTRAP signals
authorPeter Maydell <peter.maydell@linaro.org>
Fri, 13 Aug 2021 13:18:04 +0000 (14:18 +0100)
committerLaurent Vivier <laurent@vivier.eu>
Thu, 23 Sep 2021 12:42:55 +0000 (14:42 +0200)
commit1af354120dc4d9187ee1162b95ac84aafd7c4df0
treeb349fb2c7455e11016e1ed589a3c0d6902f669c6
parent1fb6a87d0bc3a730ec90578cfdfb2ef7ac5b5d11
linux-user/arm: Set siginfo_t addr field for SIGTRAP signals

When generating a TRAP_BRKPT SIGTRAP, set the siginfo_t addr field
to the PC where the breakpoint/singlestep trap occurred; this is
what the kernel does for this signal for this architecture.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20210813131809.28655-3-peter.maydell@linaro.org>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
linux-user/arm/cpu_loop.c