diff options
author | David Brownell <dbrownell@users.sourceforge.net> | 2009-12-02 11:31:32 -0800 |
---|---|---|
committer | David Brownell <dbrownell@users.sourceforge.net> | 2009-12-02 11:31:32 -0800 |
commit | 55eeea7fceb67f29c9a43eeb7993c70214157343 (patch) | |
tree | 9f6adc4a1d5235ce5b3b9aa9d391ee25f685b971 /src/target/arm_dpm.h | |
parent | 03c103d56a3937069a4a6abd02cffabe2f3a6641 (diff) | |
download | riscv-openocd-55eeea7fceb67f29c9a43eeb7993c70214157343.zip riscv-openocd-55eeea7fceb67f29c9a43eeb7993c70214157343.tar.gz riscv-openocd-55eeea7fceb67f29c9a43eeb7993c70214157343.tar.bz2 |
ARMv7a/Cortex-A8: report watchpoint trigger insn
Save and display the address of the instruction which triggered the
watchpoint. Because of pipelining, that's well behind the PC value
when debug entry completes. (Example in a subroutine that had been
returned from...)
Remove unused A8 stuff, mostly watchpoint hooks from the header.
Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
Diffstat (limited to 'src/target/arm_dpm.h')
-rw-r--r-- | src/target/arm_dpm.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/target/arm_dpm.h b/src/target/arm_dpm.h index 5d665a8..191f465 100644 --- a/src/target/arm_dpm.h +++ b/src/target/arm_dpm.h @@ -122,6 +122,9 @@ struct arm_dpm { struct dpm_bp *dbp; struct dpm_wp *dwp; + /** Address of the instruction which triggered a watchpoint. */ + uint32_t wp_pc; + // FIXME -- read/write DCSR methods and symbols }; @@ -131,4 +134,6 @@ int arm_dpm_reinitialize(struct arm_dpm *dpm); int arm_dpm_read_current_registers(struct arm_dpm *); int arm_dpm_write_dirty_registers(struct arm_dpm *, bool bpwp); +void arm_dpm_report_wfar(struct arm_dpm *, uint32_t wfar); + #endif /* __ARM_DPM_H */ |