Received: from SOUTH-STATION-ANNEX.MIT.EDU by po7.MIT.EDU (5.61/4.7) id AA26080; Sat, 30 Sep 95 19:32:36 EDT
Received: from SUN-LAMP.PC.CS.CMU.EDU by MIT.EDU with SMTP
	id AA21812; Sat, 30 Sep 95 19:32:08 EDT
Received: from pain.lcs.mit.edu (pain.lcs.mit.edu [128.52.46.239]) by sun-lamp.pc.cs.cmu.edu (8.6.11/8.6.10) with ESMTP id TAA12628; Sat, 30 Sep 1995 19:32:10 -0400
Received: (from daemon@localhost) by pain.lcs.mit.edu (8.6.9/8.6.9) id SAA14253; Sat, 30 Sep 1995 18:07:42 -0400
Received: from sun-lamp.pc.cs.cmu.edu by pain.lcs.mit.edu (8.6.9/8.6.9) with ESMTP id SAA14231 for <netbsd-bugs@pain.lcs.mit.edu>; Sat, 30 Sep 1995 18:05:06 -0400
Received: (from gnats@localhost) by sun-lamp.pc.cs.cmu.edu (8.6.11/8.6.10) id SAA11738; Sat, 30 Sep 1995 18:05:03 -0400
Resent-Date: Sat, 30 Sep 1995 18:05:03 -0400
Resent-Message-Id: <199509302205.SAA11738@sun-lamp.pc.cs.cmu.edu>
Resent-From: gnats@NetBSD.ORG (GNATS Management)
Resent-To: gnats-admin@sun-lamp.pc.cs.cmu.edu
Resent-Cc: gnats-admin@sun-lamp.pc.cs.cmu.edu, netbsd-bugs@NetBSD.ORG
Resent-Reply-To: gnats-bugs@NetBSD.ORG, cjones@rupert.oscs.montana.edu
Received: from rupert.oscs.montana.edu (rupert.oscs.montana.edu [153.90.253.65]) by sun-lamp.pc.cs.cmu.edu (8.6.11/8.6.10) with ESMTP id SAA11688 for <gnats-bugs@gnats.netbsd.org>; Sat, 30 Sep 1995 18:00:19 -0400
Received: (from cjones@localhost) by rupert.oscs.montana.edu (8.6.11/8.6.9) id PAA16700; Sat, 30 Sep 1995 15:59:12 -0600
Message-Id: <199509302159.PAA16700@rupert.oscs.montana.edu>
Date: Sat, 30 Sep 1995 15:59:12 -0600
From: Chris Jones <cjones@rupert.oscs.montana.edu>
Reply-To: cjones@rupert.oscs.montana.edu
To: gnats-bugs@gnats.netbsd.org
X-Send-Pr-Version: 3.2
Subject: port-mac/1553: spurious call to Debugger() in macrom.c
Sender: owner-netbsd-bugs@NetBSD.ORG
Precedence: list
X-Loop: netbsd-bugs@NetBSD.ORG


>Number:         1553
>Category:       port-mac
>Synopsis:       spurious call to Debugger() in macrom.c
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    gnats-admin (GNATS administrator)
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Sep 30 18:05:01 1995
>Last-Modified:
>Originator:     Chris Jones
>Organization:
**********************cjones@rupert.oscs.montana.edu**********************
* Chris  | "Nobody likes brain alteration!"                              *
*  Jones |                           --Peri Brown, _Doctor Who_          *
**************************************************************************
>Release:        Today
>Environment:
	
System: NetBSD rupert.oscs.montana.edu 1.0A NetBSD 1.0A (GENERIC) #0: Thu Sep 7 18:51:09 MDT 1995 root@amiga2.oscs.montana.edu:/mnt/src/sys/arch/mac68k/compile/GENERIC mac68k


>Description:
macrom.c calls Debugger() without enclosing the function call in any
kind of an #ifdef KGDB (or whatever is actually appropriate).  This
causes an error to the tune of undefined symbol referenced from text
segment when trying to compile a kernel without GDB or KGDB or
DIAGNOSTIC or whatever else...

>How-To-Repeat:

>Fix:
This seems to work, but don't take my work for it; this is the first
kernel patch I've ever submitted:

*** macrom.c.orig	Sat Sep 30 15:49:08 1995
--- macrom.c.new	Sat Sep 30 15:48:37 1995
***************
*** 94,101 ****
  void
  mrg_lvl1dtpanic()		/* Lvl1DT stopper */
  {
! 	printf("Agh!  I was called from Lvl1DT!!!\n");
! 	Debugger();
  }
  
  void
--- 94,100 ----
  void
  mrg_lvl1dtpanic()		/* Lvl1DT stopper */
  {
! 	panic("Agh!  I was called from Lvl1DT!!!\n");
  }
  
  void
>Audit-Trail:
>Unformatted:
