From 54826c03de9b17f6734e8efc2e19d82791247c2b Mon Sep 17 00:00:00 2001 From: uwe Date: Wed, 5 Apr 2006 00:38:51 +0000 Subject: [PATCH] Define ddb_regs in db_interface.c. Change its definion in db_machdep.h into a declaration. --- sys/arch/arm/arm32/db_interface.c | 5 +++-- sys/arch/arm/include/db_machdep.h | 4 ++-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/sys/arch/arm/arm32/db_interface.c b/sys/arch/arm/arm32/db_interface.c index e1dac9525856..656c4634285a 100644 --- a/sys/arch/arm/arm32/db_interface.c +++ b/sys/arch/arm/arm32/db_interface.c @@ -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 -__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) diff --git a/sys/arch/arm/include/db_machdep.h b/sys/arch/arm/include/db_machdep.h index 9f1b9d44de2d..584efa7f6897 100644 --- a/sys/arch/arm/include/db_machdep.h +++ b/sys/arch/arm/include/db_machdep.h @@ -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