Module Name: src Committed By: mrg Date: Mon Apr 12 02:23:41 UTC 2021
Modified Files: src/sys/arch/mips/mips: db_interface.c Log Message: avoid duplicate "ddb_regs" in crash with GCC 10 and -fcommon default. To generate a diff of this commit: cvs rdiff -u -r1.92 -r1.93 src/sys/arch/mips/mips/db_interface.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/arch/mips/mips/db_interface.c diff -u src/sys/arch/mips/mips/db_interface.c:1.92 src/sys/arch/mips/mips/db_interface.c:1.93 --- src/sys/arch/mips/mips/db_interface.c:1.92 Tue Feb 23 07:13:52 2021 +++ src/sys/arch/mips/mips/db_interface.c Mon Apr 12 02:23:41 2021 @@ -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 @@ __KERNEL_RCSID(0, "$NetBSD: db_interface 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 *);