diff options
| author | Bruce Evans <bde@FreeBSD.org> | 1995-01-14 10:34:52 +0000 |
|---|---|---|
| committer | Bruce Evans <bde@FreeBSD.org> | 1995-01-14 10:34:52 +0000 |
| commit | 1e1a3d012d1ab1fad8b6fc209361435d8516d1be (patch) | |
| tree | c399d3f37066068beed6f3fc176ad4a7a3ec1a80 /sys/amd64/include | |
| parent | b9ecc1ed6104a15d76f8bb792c43922440dfbcb9 (diff) | |
Notes
Diffstat (limited to 'sys/amd64/include')
| -rw-r--r-- | sys/amd64/include/db_machdep.h | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/sys/amd64/include/db_machdep.h b/sys/amd64/include/db_machdep.h index 7e7bec08ba19..a59b632d8267 100644 --- a/sys/amd64/include/db_machdep.h +++ b/sys/amd64/include/db_machdep.h @@ -23,11 +23,11 @@ * any improvements or extensions that they make and grant Carnegie Mellon * the rights to redistribute these changes. * - * $Id: db_machdep.h,v 1.5 1994/10/02 19:36:30 phk Exp $ + * $Id: db_machdep.h,v 1.6 1994/10/19 21:13:51 bde Exp $ */ -#ifndef _I386_DB_MACHDEP_H_ -#define _I386_DB_MACHDEP_H_ +#ifndef _MACHINE_DB_MACHDEP_H_ +#define _MACHINE_DB_MACHDEP_H_ /* * Machine-dependent defines for new kernel debugger. @@ -67,11 +67,12 @@ extern db_regs_t ddb_regs; /* register state */ #define db_clear_single_step(regs) ((regs)->tf_eflags &= ~PSL_T) #define db_set_single_step(regs) ((regs)->tf_eflags |= PSL_T) -/* #define IS_BREAKPOINT_TRAP(type, code) ((type) == T_INT3) */ -/* #define IS_WATCHPOINT_TRAP(type, code) ((type) == T_WATCHPOINT) */ -/* using the FreeBSD values, rather than the Mach ones: */ #define IS_BREAKPOINT_TRAP(type, code) ((type) == T_BPTFLT) -#define IS_WATCHPOINT_TRAP(type, code) ((type) == T_KDBTRAP) +/* + * Watchpoints are not supported. The debug exception type is in %dr6 + * and not yet in the args to this macro. + */ +#define IS_WATCHPOINT_TRAP(type, code) 0 #define I_CALL 0xe8 #define I_CALLI 0xff @@ -116,4 +117,4 @@ void db_task_name(/* task_t */); #define db_thread_fp_used(thread) ((thread)->pcb->ims.ifps != 0) -#endif /* _I386_DB_MACHDEP_H_ */ +#endif /* !_MACHINE_DB_MACHDEP_H_ */ |
