forked from auracaster/openocd
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>
This commit is contained in:
committed by
Matthias Welwarsky
parent
a12c15e21f
commit
6b554b3b0e
@@ -161,6 +161,7 @@ target_to_armv8(struct target *target)
|
||||
/* register offsets from armv8.debug_base */
|
||||
|
||||
#define CPUDBG_WFAR 0x018
|
||||
#define CPUDBG_DESR 0x020
|
||||
#define CPUDBG_DECR 0x024
|
||||
/* PCSR at 0x084 -or- 0x0a0 -or- both ... based on flags in DIDR */
|
||||
#define CPUDBG_DSCR 0x088
|
||||
|
||||
Reference in New Issue
Block a user