Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/mips/mips avoid duplicate "ddb_regs" in crash with ...
details: https://anonhg.NetBSD.org/src/rev/01a0e88c6542
branches: trunk
changeset: 378383:01a0e88c6542
user: mrg <mrg%NetBSD.org@localhost>
date: Mon Apr 12 02:23:41 2021 +0000
description:
avoid duplicate "ddb_regs" in crash with GCC 10 and -fcommon default.
diffstat:
sys/arch/mips/mips/db_interface.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diffs (28 lines):
diff -r 86045b4efb6d -r 01a0e88c6542 sys/arch/mips/mips/db_interface.c
--- a/sys/arch/mips/mips/db_interface.c Mon Apr 12 02:23:01 2021 +0000
+++ b/sys/arch/mips/mips/db_interface.c Mon Apr 12 02:23:41 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: db_interface.c,v 1.92 2021/02/23 07:13:52 mrg Exp $ */
+/* $NetBSD: db_interface.c,v 1.93 2021/04/12 02:23:41 mrg Exp $ */
/*
* Mach Operating System
@@ -27,7 +27,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: db_interface.c,v 1.92 2021/02/23 07:13:52 mrg Exp $");
+__KERNEL_RCSID(0, "$NetBSD: db_interface.c,v 1.93 2021/04/12 02:23:41 mrg Exp $");
#ifdef _KERNEL_OPT
#include "opt_multiprocessor.h"
@@ -74,7 +74,9 @@
volatile u_int ddb_cpu = NOCPU;
int db_active = 0;
+#ifdef _KERNEL
db_regs_t ddb_regs;
+#endif
#if (MIPS32 + MIPS32R2 + MIPS64 + MIPS64R2) > 0
static void db_watch_cmd(db_expr_t, bool, db_expr_t, const char *);
Home |
Main Index |
Thread Index |
Old Index