Define ddb_regs in db_interface.c.

Change its definion in db_machdep.h into a declaration.
This commit is contained in:
uwe 2006-04-05 00:38:51 +00:00
parent aa1af65e56
commit 54826c03de
2 changed files with 5 additions and 4 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: db_interface.c,v 1.39 2005/12/24 22:45:34 perry Exp $ */
/* $NetBSD: db_interface.c,v 1.40 2006/04/05 00:38:51 uwe Exp $ */
/*
* Copyright (c) 1996 Scott K. Stevens
@ -35,7 +35,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: db_interface.c,v 1.39 2005/12/24 22:45:34 perry Exp $");
__KERNEL_RCSID(0, "$NetBSD: db_interface.c,v 1.40 2006/04/05 00:38:51 uwe Exp $");
#include "opt_ddb.h"
#include "opt_kgdb.h"
@ -101,6 +101,7 @@ const struct db_variable db_regs[] = {
const struct db_variable * const db_eregs = db_regs + sizeof(db_regs)/sizeof(db_regs[0]);
int db_active = 0;
db_regs_t ddb_regs; /* register state */
int
db_access_und_sp(const struct db_variable *vp, db_expr_t *valp, int rw)

View File

@ -1,4 +1,4 @@
/* $NetBSD: db_machdep.h,v 1.10 2006/04/01 15:44:59 cherry Exp $ */
/* $NetBSD: db_machdep.h,v 1.11 2006/04/05 00:38:51 uwe Exp $ */
/*
* Copyright (c) 1996 Scott K Stevens
@ -47,7 +47,7 @@ typedef long db_expr_t; /* expression - signed */
typedef trapframe_t db_regs_t;
db_regs_t ddb_regs; /* register state */
extern db_regs_t ddb_regs; /* register state */
#define DDB_REGS (&ddb_regs)
#ifdef __PROG26