Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/kern PR/45687: Mike Pumford: savecore: (null): _ksyms_hd...
details: https://anonhg.NetBSD.org/src/rev/0e0de19ae37f
branches: trunk
changeset: 771884:0e0de19ae37f
user: christos <christos%NetBSD.org@localhost>
date: Mon Dec 05 20:55:14 2011 +0000
description:
PR/45687: Mike Pumford: savecore: (null): _ksyms_hdr not in namelist
Make it non-static and add a comment so that they don't become static again.
diffstat:
sys/kern/kern_ksyms.c | 13 ++++++++-----
1 files changed, 8 insertions(+), 5 deletions(-)
diffs (46 lines):
diff -r 38633038aedf -r 0e0de19ae37f sys/kern/kern_ksyms.c
--- a/sys/kern/kern_ksyms.c Mon Dec 05 19:20:54 2011 +0000
+++ b/sys/kern/kern_ksyms.c Mon Dec 05 20:55:14 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: kern_ksyms.c,v 1.65 2011/07/28 13:42:16 uebayasi Exp $ */
+/* $NetBSD: kern_ksyms.c,v 1.66 2011/12/05 20:55:14 christos Exp $ */
/*-
* Copyright (c) 2008 The NetBSD Foundation, Inc.
@@ -71,7 +71,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: kern_ksyms.c,v 1.65 2011/07/28 13:42:16 uebayasi Exp $");
+__KERNEL_RCSID(0, "$NetBSD: kern_ksyms.c,v 1.66 2011/12/05 20:55:14 christos Exp $");
#if defined(_KERNEL) && defined(_KERNEL_OPT)
#include "opt_ddb.h"
@@ -107,8 +107,8 @@
static int ksyms_maxlen;
static bool ksyms_isopen;
static bool ksyms_initted;
-static struct ksyms_hdr ksyms_hdr;
static kmutex_t ksyms_lock;
+static struct ksyms_symtab kernel_symtab;
void ksymsattach(int);
static void ksyms_hdr_init(void *);
@@ -128,12 +128,15 @@
int db_symtabsize = SYMTAB_SPACE;
#endif
+/*
+ * used by savecore(8) so non-static
+ */
+struct ksyms_hdr ksyms_hdr;
int ksyms_symsz;
int ksyms_strsz;
-int ksyms_ctfsz;
+int ksyms_ctfsz; /* this is not currently used by savecore(8)
TAILQ_HEAD(, ksyms_symtab) ksyms_symtabs =
TAILQ_HEAD_INITIALIZER(ksyms_symtabs);
-static struct ksyms_symtab kernel_symtab;
static int
ksyms_verify(void *symstart, void *strstart)
Home |
Main Index |
Thread Index |
Old Index