arm64: debug: report TRAP_TRACE instead of TRAP_HWBRPT for singlestep
authorWill Deacon <will.deacon@arm.com>
Thu, 1 Sep 2016 12:35:02 +0000 (13:35 +0100)
committerWill Deacon <will.deacon@arm.com>
Fri, 2 Sep 2016 15:55:58 +0000 (16:55 +0100)
commitadeb68ef85235f952b77e01c4dadfd60851890d9
treebb239199859508474b046e9169f8d234aff9433d
parenta9be2ee09385387819ca22bf6522b2437334489e
arm64: debug: report TRAP_TRACE instead of TRAP_HWBRPT for singlestep

Single-step traps to userspace (e.g. via ptrace) are expected to use
the TRAP_TRACE for the si_code field of the siginfo, as opposed to
TRAP_HWBRPT that we report currently.

Fix the reported value, which has no effect on existing and legacy
builds of GDB.

Reported-by: Yao Qi <yao.qi@arm.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
arch/arm64/kernel/debug-monitors.c