Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/pmax/pmax Protect the variables used during the DDB...



details:   https://anonhg.NetBSD.org/src/rev/806a25c6efad
branches:  trunk
changeset: 467727:806a25c6efad
user:      simonb <simonb%NetBSD.org@localhost>
date:      Sun Mar 28 01:56:41 1999 +0000

description:
Protect the variables used during the DDB symbol calculations with
an "#ifdef DDB".

diffstat:

 sys/arch/pmax/pmax/machdep.c |  12 ++++++++----
 1 files changed, 8 insertions(+), 4 deletions(-)

diffs (36 lines):

diff -r 37b7bf0563aa -r 806a25c6efad sys/arch/pmax/pmax/machdep.c
--- a/sys/arch/pmax/pmax/machdep.c      Sun Mar 28 01:09:48 1999 +0000
+++ b/sys/arch/pmax/pmax/machdep.c      Sun Mar 28 01:56:41 1999 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: machdep.c,v 1.132 1999/03/26 23:41:34 mycroft Exp $    */
+/*     $NetBSD: machdep.c,v 1.133 1999/03/28 01:56:41 simonb Exp $     */
 
 /*
  * Copyright (c) 1988 University of Utah.
@@ -43,7 +43,7 @@
 
 #include <sys/cdefs.h>                 /* RCS ID & Copyright macro defns */
 
-__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.132 1999/03/26 23:41:34 mycroft Exp $");
+__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.133 1999/03/28 01:56:41 simonb Exp $");
 
 /* from: Utah Hdr: machdep.c 1.63 91/04/24 */
 
@@ -244,11 +244,15 @@
 {
        char *cp, *bootinfo_msg;
        u_long first, last;
-       int i, nsym;
-       caddr_t kernend, v, ssym;
+       int i;
+       caddr_t kernend, v;
        unsigned size;
+#ifdef DDB
+       int nsym;
+       caddr_t ssym;
        struct btinfo_symtab *bi_syms;
        struct exec *aout;              /* XXX backwards compatilbity for DDB */
+#endif
 
        extern char edata[], end[];
 



Home | Main Index | Thread Index | Old Index