Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/zaurus/zaurus Yes, we need to load symbols, but we ...



details:   https://anonhg.NetBSD.org/src/rev/70ed7e5bce87
branches:  trunk
changeset: 997871:70ed7e5bce87
user:      christos <christos%NetBSD.org@localhost>
date:      Fri Mar 29 20:27:45 2019 +0000

description:
Yes, we need to load symbols, but we don't need the whole DDB infrastructure
for that.

diffstat:

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

diffs (34 lines):

diff -r 2ca27d7ba932 -r 70ed7e5bce87 sys/arch/zaurus/zaurus/machdep.c
--- a/sys/arch/zaurus/zaurus/machdep.c  Fri Mar 29 20:18:09 2019 +0000
+++ b/sys/arch/zaurus/zaurus/machdep.c  Fri Mar 29 20:27:45 2019 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: machdep.c,v 1.39 2018/10/28 14:30:33 skrll Exp $       */
+/*     $NetBSD: machdep.c,v 1.40 2019/03/29 20:27:45 christos Exp $    */
 /*     $OpenBSD: zaurus_machdep.c,v 1.25 2006/06/20 18:24:04 todd Exp $        */
 
 /*
@@ -107,7 +107,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.39 2018/10/28 14:30:33 skrll Exp $");
+__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.40 2019/03/29 20:27:45 christos Exp $");
 
 #include "opt_ddb.h"
 #include "opt_kgdb.h"
@@ -1109,9 +1109,13 @@
        md_root_setconf(memory_disk, sizeof memory_disk);
 #endif
 
-#if NKSYMS || defined(DDB) || defined(MODULAR)
+#if NKSYMS || defined(MODULAR)
+# ifdef DDB
+       ddb_init(0, NULL, NULL);
+# else
        /* Firmware doesn't load symbols. */
-       ddb_init(0, NULL, NULL);
+       ksyms_addsyms_elf(0, NULL, NULL);
+# endif
 #endif
 
 #ifdef KGDB



Home | Main Index | Thread Index | Old Index