diff options
author | Mitchell Horne <mhorne@FreeBSD.org> | 2021-03-04 00:14:42 +0000 |
---|---|---|
committer | Mitchell Horne <mhorne@FreeBSD.org> | 2021-04-21 13:20:33 +0000 |
commit | 2d0ad402a075d2c4ef8e47f11c1b3776f7eca666 (patch) | |
tree | 771538b367fed6f177f3195413ca0204d287f783 /sys/arm/include | |
parent | 08ce99c3f1b88d38a15b1f30a8b0934a582e119a (diff) | |
download | src-2d0ad402a075d2c4ef8e47f11c1b3776f7eca666.tar.gz src-2d0ad402a075d2c4ef8e47f11c1b3776f7eca666.zip |
arm: implement kdb watchpoint functions
Implement wrappers around the existing debug_monitor interface, to be
consumed by MI kernel debugger code.
For now, the various db_printf() calls in this code remain. In the
future, they could be converted to printf() or removed altogether, to
properly decouple the DDB and GDB options.
Reviewed by: jhb, kib, markj
Sponsored by: NetApp, Inc.
Sponsored by: Klara, Inc.
(cherry picked from commit 5a2933d0bf9fb0018349b67a39fa85cbb3740779)
Diffstat (limited to 'sys/arm/include')
-rw-r--r-- | sys/arm/include/kdb.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/arm/include/kdb.h b/sys/arm/include/kdb.h index 42677499ed78..728bf211dc62 100644 --- a/sys/arm/include/kdb.h +++ b/sys/arm/include/kdb.h @@ -41,6 +41,8 @@ extern void kdb_cpu_clear_singlestep(void); extern void kdb_cpu_set_singlestep(void); boolean_t kdb_cpu_pc_is_singlestep(db_addr_t); +int kdb_cpu_set_watchpoint(vm_offset_t addr, size_t size, int access); +int kdb_cpu_clr_watchpoint(vm_offset_t addr, size_t size); static __inline void kdb_cpu_sync_icache(unsigned char *addr, size_t size) |