diff options
author | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2013-02-04 11:43:17 +0100 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2013-02-04 11:44:41 +0100 |
commit | 39376ba840a8682082eee9175b6951d4a7ae41f2 (patch) | |
tree | 09d99578313db44ba159bf14d33a38b577231711 /i386/i386/db_machdep.h | |
parent | 43042e6f6cc483b22694619861eab183364f08f5 (diff) |
Plug hw debug register support into kdb
Make the `watch' command use hw debug registers whenever possible.
* ddb/db_watch.c (db_set_hw_watchpoint, db_clear_hw_watchpoint): Add
functions prototypes.
(db_set_watchpoints): Try to call db_set_hw_watchpoint.
(db_clear_watchpoints): Call db_clear_hw_watchpoint.
* i386/i386/db_interface.c: Include <ddb/db_watch.h>
(db_set_hw_watchpoint): Take a db_watchpoint_t WATCH parameter instead of
its content. Remove support for clearing a debug register.
(db_clear_hw_watchpoint): Add function.
* i386/i386/db_interface.h: Include <ddb/db_watch.h>.
(db_set_hw_watchpoint): Fix function prototype.
(db_clear_hw_watchpoint): Add function prototype.
* i386/i386/db_machdep.h: Do not include <machine/db_interface.h>
Diffstat (limited to 'i386/i386/db_machdep.h')
-rw-r--r-- | i386/i386/db_machdep.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/i386/i386/db_machdep.h b/i386/i386/db_machdep.h index 1dba2cd..c6ea3ca 100644 --- a/i386/i386/db_machdep.h +++ b/i386/i386/db_machdep.h @@ -34,7 +34,6 @@ #include <mach/machine/vm_types.h> #include <mach/machine/vm_param.h> #include <mach/machine/eflags.h> -#include <machine/db_interface.h> #include <i386/thread.h> /* for thread_status */ #include <i386/trap.h> |