Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/adb We don't have Debugger if we don't have DDB.



details:   https://anonhg.NetBSD.org/src/rev/823f309c996b
branches:  trunk
changeset: 339577:823f309c996b
user:      christos <christos%NetBSD.org@localhost>
date:      Wed Jul 29 08:45:28 2015 +0000

description:
We don't have Debugger if we don't have DDB.

diffstat:

 sys/dev/adb/adb_kbd.c |  8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)

diffs (30 lines):

diff -r 32f986b62fc6 -r 823f309c996b sys/dev/adb/adb_kbd.c
--- a/sys/dev/adb/adb_kbd.c     Wed Jul 29 07:42:27 2015 +0000
+++ b/sys/dev/adb/adb_kbd.c     Wed Jul 29 08:45:28 2015 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: adb_kbd.c,v 1.25 2015/07/27 19:27:04 macallan Exp $    */
+/*     $NetBSD: adb_kbd.c,v 1.26 2015/07/29 08:45:28 christos Exp $    */
 
 /*
  * Copyright (C) 1998  Colin Wood
@@ -32,7 +32,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: adb_kbd.c,v 1.25 2015/07/27 19:27:04 macallan Exp $");
+__KERNEL_RCSID(0, "$NetBSD: adb_kbd.c,v 1.26 2015/07/29 08:45:28 christos Exp $");
 
 #include <sys/param.h>
 #include <sys/device.h>
@@ -480,7 +480,11 @@
        struct adbkbd_softc *sc = cookie;
 
        if (sc->sc_power_dbg) {
+#ifdef DDB
                Debugger();
+#else
+               printf("kernel is not compiled with DDB support\n");
+#endif
        } else {
                sysmon_pswitch_event(&sc->sc_sm_pbutton, 
                    ADBK_PRESS(sc->sc_pe) ? PSWITCH_EVENT_PRESSED :



Home | Main Index | Thread Index | Old Index