Make the ddb_regs declaration an extern in db_machdep.h and declare it on

db_interface.c.
This commit is contained in:
simonb 2002-02-15 07:32:34 +00:00
parent 23c8fa8cf8
commit 4a188395df
2 changed files with 6 additions and 5 deletions

View File

@ -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) * 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; 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 DDB_REGS (&ddb_regs)
#define PC_REGS(regs) ((db_addr_t)(regs)->f_regs[PC]) #define PC_REGS(regs) ((db_addr_t)(regs)->f_regs[PC])

View File

@ -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 * Mach Operating System
@ -57,6 +57,7 @@
#endif #endif
int db_active = 0; int db_active = 0;
db_regs_t ddb_regs;
mips_reg_t kdbaux[11]; /* XXX struct switchframe: better inside curpcb? XXX */ 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_tlbdump_cmd(db_expr_t, int, db_expr_t, char *);