diff options
author | bde <bde@FreeBSD.org> | 1995-01-14 10:34:52 +0000 |
---|---|---|
committer | bde <bde@FreeBSD.org> | 1995-01-14 10:34:52 +0000 |
commit | 352cf37066fe2f802c595827e8cdac85d7e270c3 (patch) | |
tree | c399d3f37066068beed6f3fc176ad4a7a3ec1a80 /sys/i386/include/db_machdep.h | |
parent | e1791b06e3b92a894b9e89fd4989fdb3a2a0ccc1 (diff) | |
download | FreeBSD-src-352cf37066fe2f802c595827e8cdac85d7e270c3.zip FreeBSD-src-352cf37066fe2f802c595827e8cdac85d7e270c3.tar.gz |
Remove reference to impossible trap type T_KDBTRAP. We don't support
watchpoints.
Uniformize idempotency ifdef.
Diffstat (limited to 'sys/i386/include/db_machdep.h')
-rw-r--r-- | sys/i386/include/db_machdep.h | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/sys/i386/include/db_machdep.h b/sys/i386/include/db_machdep.h index 7e7bec0..a59b632 100644 --- a/sys/i386/include/db_machdep.h +++ b/sys/i386/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_ */ |