diff options
author | Antonio Borneo <borneo.antonio@gmail.com> | 2021-05-05 12:27:11 +0200 |
---|---|---|
committer | Antonio Borneo <borneo.antonio@gmail.com> | 2021-05-22 10:04:12 +0100 |
commit | 510df38407da25aa0fa7427d26b9253455885d9b (patch) | |
tree | 0a8daa3246ae10b2146842e4d6ad79a755483b7c /src/target/armv8.c | |
parent | 936cff887abf116427802c4f07096fca1f2b1d88 (diff) | |
download | riscv-openocd-510df38407da25aa0fa7427d26b9253455885d9b.zip riscv-openocd-510df38407da25aa0fa7427d26b9253455885d9b.tar.gz riscv-openocd-510df38407da25aa0fa7427d26b9253455885d9b.tar.bz2 |
target/arm_dpm: rename 'wp_pc' as 'wp_addr'
The field 'wp_pc' was originally introduced in commit 55eeea7fceb6
("ARMv7a/Cortex-A8: report watchpoint trigger insn") in end 2009
to contain the address of the instruction which triggered a
watchpoint. Later on with commit 651b861d5d5f ("target/aarch64:
Add watchpoint support") it has been reused in to hold directly
the memory address that triggered a watchpoint.
Rename 'wp_pc' as 'wp_addr' and change its doxygen description.
While there, fix the format string to print the field.
Change-Id: I2e5ced1497e4a6fb6b38f91e881807512e8d8c47
Signed-off-by: Antonio Borneo <borneo.antonio@gmail.com>
Reviewed-on: http://openocd.zylin.com/6204
Tested-by: jenkins
Reviewed-by: Liming Sun <limings@nvidia.com>
Diffstat (limited to 'src/target/armv8.c')
-rw-r--r-- | src/target/armv8.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/target/armv8.c b/src/target/armv8.c index 6bf3b11..e209e88 100644 --- a/src/target/armv8.c +++ b/src/target/armv8.c @@ -1169,8 +1169,7 @@ int armv8_arch_state(struct target *target) armv8_show_fault_registers(target); if (target->debug_reason == DBG_REASON_WATCHPOINT) - LOG_USER("Watchpoint triggered at PC %#08x", - (unsigned) armv8->dpm.wp_pc); + LOG_USER("Watchpoint triggered at PC " TARGET_ADDR_FMT, armv8->dpm.wp_addr); return ERROR_OK; } |