summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormiod <miod@openbsd.org>2004-01-22 17:47:01 +0000
committermiod <miod@openbsd.org>2004-01-22 17:47:01 +0000
commitee7ea3d78e823997362fad08406723ce507fefe0 (patch)
tree577ea7c21ca19ba03e43db9c3eb1da2068d2bc1c
parentfix segfault when an invalid field was requested (diff)
downloadwireguard-openbsd-ee7ea3d78e823997362fad08406723ce507fefe0.tar.xz
wireguard-openbsd-ee7ea3d78e823997362fad08406723ce507fefe0.zip
Nuke ddb_regs common.
-rw-r--r--sys/arch/alpha/alpha/db_interface.c4
-rw-r--r--sys/arch/alpha/include/db_machdep.h4
2 files changed, 5 insertions, 3 deletions
diff --git a/sys/arch/alpha/alpha/db_interface.c b/sys/arch/alpha/alpha/db_interface.c
index b600fcd8848..ad399cc0bca 100644
--- a/sys/arch/alpha/alpha/db_interface.c
+++ b/sys/arch/alpha/alpha/db_interface.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: db_interface.c,v 1.15 2003/02/19 19:32:44 miod Exp $ */
+/* $OpenBSD: db_interface.c,v 1.16 2004/01/22 17:47:01 miod Exp $ */
/* $NetBSD: db_interface.c,v 1.8 1999/10/12 17:08:57 jdolecek Exp $ */
/*
@@ -79,6 +79,8 @@ extern char *trap_type[];
extern int trap_types;
#endif
+db_regs_t ddb_regs;
+
int db_active = 0;
struct db_variable db_regs[] = {
diff --git a/sys/arch/alpha/include/db_machdep.h b/sys/arch/alpha/include/db_machdep.h
index 1ffa596cf85..783bdd2e225 100644
--- a/sys/arch/alpha/include/db_machdep.h
+++ b/sys/arch/alpha/include/db_machdep.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: db_machdep.h,v 1.16 2003/10/18 20:14:41 jmc Exp $ */
+/* $OpenBSD: db_machdep.h,v 1.17 2004/01/22 17:47:03 miod Exp $ */
/*
* Copyright (c) 1997 Niklas Hallqvist. All rights reserved.
@@ -48,7 +48,7 @@ typedef vm_offset_t db_addr_t;
typedef long db_expr_t;
typedef struct trapframe db_regs_t;
-db_regs_t ddb_regs;
+extern db_regs_t ddb_regs;
#define DDB_REGS (&ddb_regs)
#define PC_REGS(regs) ((db_addr_t)(regs)->tf_regs[FRAME_PC])