remove the MI Debugger() added recently. It doesn't make sense in

it's current form.
make Debugger just an alias for cpu_Debugger
This commit is contained in:
jdolecek 1999-10-14 18:42:15 +00:00
parent c98f493f90
commit 9933da44b8
3 changed files with 3 additions and 63 deletions

View File

@ -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_access.c ddb | kgdb
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

View File

@ -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();
}

View File

@ -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 @@ void kmstartup __P((void));
#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
*/