Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F102960979
D44354.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
988 B
Referenced Files
None
Subscribers
None
D44354.diff
View Options
diff --git a/sys/gdb/gdb_main.c b/sys/gdb/gdb_main.c
--- a/sys/gdb/gdb_main.c
+++ b/sys/gdb/gdb_main.c
@@ -267,6 +267,11 @@
gdb_tx_str(";qXfer:threads:read+");
+#ifdef HAS_HW_BREAKPOINT
+ if ((*feat & GDB_HWBREAK) != 0)
+ gdb_tx_str(";hwbreak+");
+#endif
+
/*
* If the debugport is a reliable transport, request No Ack mode from
* the server. The server may or may not choose to enter No Ack mode.
@@ -648,6 +653,10 @@
(vm_size_t)length, KDB_DBG_ACCESS_RW);
break;
case '1': /* hardware breakpoint */
+#ifdef HAS_HW_BREAKPOINT
+ error = kdb_cpu_set_breakpoint((vm_offset_t)addr);
+ break;
+#endif
case '0': /* software breakpoint */
/* Not implemented. */
gdb_tx_empty();
@@ -692,6 +701,10 @@
(vm_size_t)length);
break;
case '1': /* hardware breakpoint */
+#ifdef HAS_HW_BREAKPOINT
+ error = kdb_cpu_clr_breakpoint((vm_offset_t)addr);
+ break;
+#endif
case '0': /* software breakpoint */
/* Not implemented. */
gdb_tx_empty();
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Nov 20, 5:48 AM (22 h, 15 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
14731562
Default Alt Text
D44354.diff (988 B)
Attached To
Mode
D44354: sys/gdb: Support hardware breakpoints
Attached
Detach File
Event Timeline
Log In to Comment