From 9677cd160068c81899802ad8c77c0879d451b880 Mon Sep 17 00:00:00 2001 From: Martin Pieuchot Date: Sun, 30 Apr 2017 13:04:50 +0000 Subject: Unifdef KGDB. It doesn't compile und hasn't been working during the last decade. ok kettenis@, deraadt@ --- sys/arch/i386/include/cpufunc.h | 4 ++-- sys/arch/i386/include/db_machdep.h | 11 +---------- 2 files changed, 3 insertions(+), 12 deletions(-) (limited to 'sys/arch/i386/include') 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 *); -- cgit v1.2.3