]> git.sur5r.net Git - openocd/commit
aarch64: Correct target state for hardware step
authorDavid Ung <davidu@nvidia.com>
Mon, 20 Apr 2015 20:14:43 +0000 (13:14 -0700)
committerMatthias Welwarsky <matthias.welwarsky@sysgo.com>
Fri, 10 Feb 2017 12:59:15 +0000 (13:59 +0100)
commit6b554b3b0e34fe0a1d37a1584baf3c3e32a76b57
treed24136825f66a84297b97af0c4ac88a4842875b2
parenta12c15e21f663550de518595e606633bf82b5d04
aarch64: Correct target state for hardware step

When using hardware step for doing stepping, the existing DSCR records
the event as external debug request.  This will generate a SIGINT event
to GDB and causes it to stop the stepping process.
For aarch64, read DESR to check if the event is a hardware step and set
state to DBG_REASON_SINGLESTEP.
With this patch, GDB can now do source level stepping.

Change-Id: I1d06f819578c74b3ac17376c67f882adddea1f52
Signed-off-by: David Ung <david.ung.42@gmail.com>
Signed-off-by: Matthias Welwarsky <matthias.welwarsky@sysgo.com>
src/target/aarch64.c
src/target/armv8.h