summaryrefslogtreecommitdiffstats
path: root/sys/ddb/db_command.c
diff options
context:
space:
mode:
authorbsd <bsd@FreeBSD.org>2001-07-11 03:15:25 +0000
committerbsd <bsd@FreeBSD.org>2001-07-11 03:15:25 +0000
commit17eb1bfcbf757a1739adfbf5d0fb91b10212a882 (patch)
tree52fdc5e25b5fc104fbb4ec3a396a3c44576aff14 /sys/ddb/db_command.c
parent0d42a4ee81d7081c6b0b32ccde9c7a4ec2b90f50 (diff)
downloadFreeBSD-src-17eb1bfcbf757a1739adfbf5d0fb91b10212a882.zip
FreeBSD-src-17eb1bfcbf757a1739adfbf5d0fb91b10212a882.tar.gz
Add 'hwatch' and 'dhwatch' ddb commands analogous to 'watch' and
'dwatch'. The new commands install hardware watchpoints if supported by the architecture and if there are enough registers to cover the desired memory area. No objection by: audit@, hackers@ MFC after: 2 weeks
Diffstat (limited to 'sys/ddb/db_command.c')
-rw-r--r--sys/ddb/db_command.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/ddb/db_command.c b/sys/ddb/db_command.c
index 64cad7e..dfcc9c3 100644
--- a/sys/ddb/db_command.c
+++ b/sys/ddb/db_command.c
@@ -401,6 +401,8 @@ static struct command db_command_table[] = {
{ "break", db_breakpoint_cmd, 0, 0 },
{ "dwatch", db_deletewatch_cmd, 0, 0 },
{ "watch", db_watchpoint_cmd, CS_MORE,0 },
+ { "dhwatch", db_deletehwatch_cmd, 0, 0 },
+ { "hwatch", db_hwatchpoint_cmd, 0, 0 },
{ "step", db_single_step_cmd, 0, 0 },
{ "s", db_single_step_cmd, 0, 0 },
{ "continue", db_continue_cmd, 0, 0 },
OpenPOWER on IntegriCloud