summaryrefslogtreecommitdiff
path: root/sys/arch/i386/include
diff options
context:
space:
mode:
authorMartin Pieuchot <mpi@cvs.openbsd.org>2017-04-30 13:04:50 +0000
committerMartin Pieuchot <mpi@cvs.openbsd.org>2017-04-30 13:04:50 +0000
commit9677cd160068c81899802ad8c77c0879d451b880 (patch)
tree5cddb69b1b72c888c26085e12b2d6cfd4c026daf /sys/arch/i386/include
parent22d14bd3c139dd25c22669e4e75a1ac94d35f79e (diff)
Unifdef KGDB.
It doesn't compile und hasn't been working during the last decade. ok kettenis@, deraadt@
Diffstat (limited to 'sys/arch/i386/include')
-rw-r--r--sys/arch/i386/include/cpufunc.h4
-rw-r--r--sys/arch/i386/include/db_machdep.h11
2 files changed, 3 insertions, 12 deletions
diff --git a/sys/arch/i386/include/cpufunc.h b/sys/arch/i386/include/cpufunc.h
index 2262237c229..3bcd61ab84f 100644
--- a/sys/arch/i386/include/cpufunc.h
+++ b/sys/arch/i386/include/cpufunc.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: cpufunc.h,v 1.23 2017/02/06 09:13:41 mpi Exp $ */
+/* $OpenBSD: cpufunc.h,v 1.24 2017/04/30 13:04:49 mpi Exp $ */
/* $NetBSD: cpufunc.h,v 1.8 1994/10/27 04:15:59 cgd Exp $ */
/*
@@ -303,7 +303,7 @@ wrmsr_locked(u_int msr, u_int code, u_int64_t newval)
: "A" (newval), "c" (msr), "D" (code));
}
-/* Break into DDB/KGDB. */
+/* Break into DDB. */
static __inline void
breakpoint(void)
{
diff --git a/sys/arch/i386/include/db_machdep.h b/sys/arch/i386/include/db_machdep.h
index 5d9fb9bd5e8..2654c691e23 100644
--- a/sys/arch/i386/include/db_machdep.h
+++ b/sys/arch/i386/include/db_machdep.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: db_machdep.h,v 1.26 2017/02/06 09:13:41 mpi Exp $ */
+/* $OpenBSD: db_machdep.h,v 1.27 2017/04/30 13:04:49 mpi Exp $ */
/* $NetBSD: db_machdep.h,v 1.9 1996/05/03 19:23:59 christos Exp $ */
/*
@@ -75,15 +75,6 @@ extern db_regs_t ddb_regs; /* register state */
#define DB_MACHINE_COMMANDS
-/*
- * Constants for KGDB.
- */
-typedef long kgdb_reg_t;
-#define KGDB_NUMREGS 16
-#define KGDB_BUFLEN 512
-
-#define KGDB_ENTER breakpoint()
-
/* macro for checking if a thread has used floating-point */
int db_ktrap(int, int, db_regs_t *);