Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F148056770
D29155.1785239250.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D29155.1785239250.diff
View Options
diff --git a/sys/mips/include/kdb.h b/sys/mips/include/kdb.h
--- a/sys/mips/include/kdb.h
+++ b/sys/mips/include/kdb.h
@@ -55,4 +55,19 @@
kdb_cpu_sync_icache(unsigned char *addr, size_t size)
{
}
+
+static __inline int
+kdb_cpu_set_watchpoint(vm_offset_t addr, vm_size_t size, int access)
+{
+
+ return (ENXIO);
+}
+
+static __inline int
+kdb_cpu_clr_watchpoint(vm_offset_t addr, vm_size_t size)
+{
+
+ return (0);
+}
+
#endif /* _MACHINE_KDB_H_ */
diff --git a/sys/powerpc/include/kdb.h b/sys/powerpc/include/kdb.h
--- a/sys/powerpc/include/kdb.h
+++ b/sys/powerpc/include/kdb.h
@@ -54,4 +54,18 @@
{
}
+static __inline int
+kdb_cpu_set_watchpoint(vm_offset_t addr, vm_size_t size, int access)
+{
+
+ return (ENXIO);
+}
+
+static __inline int
+kdb_cpu_clr_watchpoint(vm_offset_t addr, vm_size_t size)
+{
+
+ return (0);
+}
+
#endif /* _MACHINE_KDB_H_ */
diff --git a/sys/riscv/include/kdb.h b/sys/riscv/include/kdb.h
--- a/sys/riscv/include/kdb.h
+++ b/sys/riscv/include/kdb.h
@@ -59,4 +59,18 @@
{
}
+static __inline int
+kdb_cpu_set_watchpoint(vm_offset_t addr, vm_size_t size, int access)
+{
+
+ return (ENXIO);
+}
+
+static __inline int
+kdb_cpu_clr_watchpoint(vm_offset_t addr, vm_size_t size)
+{
+
+ return (0);
+}
+
#endif /* _MACHINE_KDB_H_ */
diff --git a/sys/sys/kdb.h b/sys/sys/kdb.h
--- a/sys/sys/kdb.h
+++ b/sys/sys/kdb.h
@@ -127,4 +127,10 @@
#define KDB_REQ_PANIC 2 /* User requested a panic */
#define KDB_REQ_REBOOT 3 /* User requested a clean reboot */
+/* Debug breakpoint/watchpoint access types */
+#define KDB_DBG_ACCESS_EXEC 0
+#define KDB_DBG_ACCESS_R 1
+#define KDB_DBG_ACCESS_W 2
+#define KDB_DBG_ACCESS_RW 3
+
#endif /* !_SYS_KDB_H_ */
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Jul 28, 11:47 AM (19 h, 21 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
29290468
Default Alt Text
D29155.1785239250.diff (1 KB)
Attached To
Mode
D29155: Introduce kdb-level watchpoint functions
Attached
Detach File
Event Timeline
Log In to Comment