Page MenuHomeFreeBSD

D44354.diff
No OneTemporary

D44354.diff

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

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)

Event Timeline