Source-Changes-HG archive

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

[src/trunk]: src/sys remove the MI Debugger() added recently. It doesn't make...



details:   https://anonhg.NetBSD.org/src/rev/7cfe3116b30d
branches:  trunk
changeset: 477189:7cfe3116b30d
user:      jdolecek <jdolecek%NetBSD.org@localhost>
date:      Thu Oct 14 18:42:15 1999 +0000

description:
remove the MI Debugger() added recently. It doesn't make sense in
it's current form.
make Debugger just an alias for cpu_Debugger

diffstat:

 sys/conf/files        |   3 +-
 sys/ddb/db_debugger.c |  59 ---------------------------------------------------
 sys/sys/systm.h       |   4 +-
 3 files changed, 3 insertions(+), 63 deletions(-)

diffs (99 lines):

diff -r 8b863fe6a500 -r 7cfe3116b30d sys/conf/files
--- a/sys/conf/files    Thu Oct 14 18:29:02 1999 +0000
+++ b/sys/conf/files    Thu Oct 14 18:42:15 1999 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: files,v 1.322 1999/10/13 18:37:12 thorpej Exp $
+#      $NetBSD: files,v 1.323 1999/10/14 18:42:15 jdolecek Exp $
 
 #      @(#)files.newconf       7.5 (Berkeley) 5/10/93
 
@@ -461,7 +461,6 @@
 file ddb/db_aout.c                     ddb
 file ddb/db_break.c                    ddb
 file ddb/db_command.c                  ddb
-file ddb/db_debugger.c                 ddb
 file ddb/db_elf.c                      ddb
 file ddb/db_examine.c                  ddb
 file ddb/db_expr.c                     ddb
diff -r 8b863fe6a500 -r 7cfe3116b30d sys/ddb/db_debugger.c
--- a/sys/ddb/db_debugger.c     Thu Oct 14 18:29:02 1999 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,59 +0,0 @@
-/*     $NetBSD: db_debugger.c,v 1.1 1999/10/12 17:08:57 jdolecek Exp $ */
-
-/*-
- * Copyright (c) 1996, 1997 The NetBSD Foundation, Inc.
- * All rights reserved.
- *
- * This code is derived from software contributed to The NetBSD Foundation
- * by Jaromir Dolecek.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- * 1. Redistributions of source code must retain the above copyright
- *    notice, this list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright
- *    notice, this list of conditions and the following disclaimer in the
- *    documentation and/or other materials provided with the distribution.
- * 3. All advertising materials mentioning features or use of this software
- *    must display the following acknowledgement:
- *     This product includes software developed by the NetBSD
- *     Foundation, Inc. and its contributors.
- * 4. Neither the name of The NetBSD Foundation nor the names of its
- *    contributors may be used to endorse or promote products derived
- *    from this software without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
- * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
- * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
- * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
- * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
- * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
- * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
- * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
- * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- * POSSIBILITY OF SUCH DAMAGE.
- */
-
-#include "wsdisplay.h"
-#include "opt_ddb.h"
-
-#include <sys/types.h>
-#include <sys/systm.h>
-
-#if defined(NWSDISPLAY) && NWSDISPLAY > 0
-#include <dev/wscons/wsdisplayvar.h>
-#endif
-
-void
-Debugger()
-{
-#if defined(NWSDISPLAY) && NWSDISPLAY > 0
-       /* if wscons is used, switch to console before entering DDB */
-       wsdisplay_switchtoconsole();
-#endif
-
-       /* now just call the MD hook to switch into DDB */
-       cpu_Debugger();
-}
diff -r 8b863fe6a500 -r 7cfe3116b30d sys/sys/systm.h
--- a/sys/sys/systm.h   Thu Oct 14 18:29:02 1999 +0000
+++ b/sys/sys/systm.h   Thu Oct 14 18:42:15 1999 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: systm.h,v 1.96 1999/10/12 17:08:57 jdolecek Exp $      */
+/*     $NetBSD: systm.h,v 1.97 1999/10/14 18:42:16 jdolecek Exp $      */
 
 /*-
  * Copyright (c) 1982, 1988, 1991, 1993
@@ -307,8 +307,8 @@
 
 #ifdef _KERNEL
 #ifdef DDB
-void   Debugger __P((void));
 void   cpu_Debugger __P((void));
+#define Debugger       cpu_Debugger
 /*
  * Enter debugger(s) from console attention if enabled
  */



Home | Main Index | Thread Index | Old Index