diff --git a/sys/arch/mips/include/db_machdep.h b/sys/arch/mips/include/db_machdep.h index 8e296f978fc4..3cba597f99f5 100644 --- a/sys/arch/mips/include/db_machdep.h +++ b/sys/arch/mips/include/db_machdep.h @@ -1,4 +1,4 @@ -/* $NetBSD: db_machdep.h,v 1.12 2001/11/09 06:52:24 thorpej Exp $ */ +/* $NetBSD: db_machdep.h,v 1.13 2002/02/15 07:32:34 simonb Exp $ */ /* * Copyright (c) 1997 Jonathan Stone (hereinafter referred to as the author) @@ -46,7 +46,7 @@ typedef long db_expr_t; /* expression - signed */ typedef struct frame db_regs_t; -db_regs_t ddb_regs; /* register state */ +extern db_regs_t ddb_regs; /* register state */ #define DDB_REGS (&ddb_regs) #define PC_REGS(regs) ((db_addr_t)(regs)->f_regs[PC]) diff --git a/sys/arch/mips/mips/db_interface.c b/sys/arch/mips/mips/db_interface.c index 6e0b96a154cb..27b36f3a0420 100644 --- a/sys/arch/mips/mips/db_interface.c +++ b/sys/arch/mips/mips/db_interface.c @@ -1,4 +1,4 @@ -/* $NetBSD: db_interface.c,v 1.39 2002/01/12 01:40:37 enami Exp $ */ +/* $NetBSD: db_interface.c,v 1.40 2002/02/15 07:32:35 simonb Exp $ */ /* * Mach Operating System @@ -56,8 +56,9 @@ #include #endif -int db_active = 0; -mips_reg_t kdbaux[11]; /* XXX struct switchframe: better inside curpcb? XXX */ +int db_active = 0; +db_regs_t ddb_regs; +mips_reg_t kdbaux[11]; /* XXX struct switchframe: better inside curpcb? XXX */ void db_tlbdump_cmd(db_expr_t, int, db_expr_t, char *); void db_kvtophys_cmd(db_expr_t, int, db_expr_t, char *);