From 2df6131a6486e2430655836c8303a122ee032422 Mon Sep 17 00:00:00 2001 From: ad Date: Fri, 5 Dec 2008 21:41:10 +0000 Subject: [PATCH] Enable the faked ELF kernel by default, now that ksyms output works with gdb. Makes it possible to do post-mortem debugging on a modular kernel. --- sbin/savecore/savecore.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sbin/savecore/savecore.c b/sbin/savecore/savecore.c index 675ed8a016a4..e13c8e18fccb 100644 --- a/sbin/savecore/savecore.c +++ b/sbin/savecore/savecore.c @@ -1,4 +1,4 @@ -/* $NetBSD: savecore.c,v 1.76 2008/10/20 10:34:54 ad Exp $ */ +/* $NetBSD: savecore.c,v 1.77 2008/12/05 21:41:10 ad Exp $ */ /*- * Copyright (c) 1986, 1992, 1993 @@ -39,7 +39,7 @@ __COPYRIGHT("@(#) Copyright (c) 1986, 1992, 1993\ #if 0 static char sccsid[] = "@(#)savecore.c 8.5 (Berkeley) 4/28/95"; #else -__RCSID("$NetBSD: savecore.c,v 1.76 2008/10/20 10:34:54 ad Exp $"); +__RCSID("$NetBSD: savecore.c,v 1.77 2008/12/05 21:41:10 ad Exp $"); #endif #endif /* not lint */ @@ -783,7 +783,7 @@ err2: syslog(LOG_WARNING, dirname, bounds, compress ? ".gz" : ""); syslog(LOG_NOTICE, "writing %skernel to %s", compress ? "compressed " : "", path); - for (tryksyms = 0 /* XXX disable for now */;; tryksyms = 0) { + for (tryksyms = 1;; tryksyms = 0) { if (compress) { if ((fp = zopen(path, gzmode)) == NULL) { syslog(LOG_ERR, "%s: %m", path);