NetBSD Problem Report #7738

Received: (qmail 14404 invoked from network); 8 Jun 1999 23:42:24 -0000
Message-Id: <199906082342.TAA05461@fermi.cmf.nrl.navy.mil>
Date: Tue, 8 Jun 1999 19:42:19 -0400
From: Chas Williams <chas@cmf.nrl.navy.mil>
Reply-To: chas@cmf.nrl.navy.mil
To: gnats-bugs@gnats.netbsd.org
Subject: option DDB requires option COMPAT_13
X-Send-Pr-Version: 3.95

>Number:         7738
>Category:       port-mac68k
>Synopsis:       option DDB requires option COMPAT_13
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    port-mac68k-maintainer
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Jun 08 16:50:01 +0000 1999
>Closed-Date:    Sun Oct 31 08:19:25 +0000 1999
>Last-Modified:  Sun Oct 31 08:22:48 +0000 1999
>Originator:     
>Release:        99/06/08
>Organization:
	Naval Research Laboratory
>Environment:
	NetBSD thirdoffive 1.4C NetBSD 1.4C (QUADRA) #6: Tue Jun  8 18:21:26 EDT 1999     chas@thirdoffive:/usr/current/src/sys/arch/mac68k/compile/QUADRA mac68k

>Description:
	if COMPAT_13 is disabled , and DDB enabled in the kernel config
	file, trap.o fails to link with an error about a missing _trap1
	symbol.  if COMPAT_13 is not enabled, vectors.s doesnt define
	trap1

>How-To-Repeat:
	create a kernel config w/ COMPAT_13 disabled, and DDB enabled
>Fix:
	i suppose one would patch trap.c not to referenace trap1 unless
	COMPAT_13 is defined...

--- trap.c      Tue Jun  8 18:20:46 1999
+++ trap.c.000  Tue Jun  8 18:16:41 1999
@@ -267,10 +267,7 @@
 {
        extern char fubail[], subail[];
 #ifdef DDB
-       extern char trap0[], trap2[], trap12[], trap15[], illinst[];
-#ifdef COMPAT_13
-       extern char trap1[];
-#endif
+       extern char trap0[], trap1[], trap2[], trap12[], trap15[], illinst[];
 #endif
        struct proc *p;
        int i, s;
@@ -466,9 +463,7 @@
 #ifdef DDB
                if (type == T_TRAP15 ||
                    ((caddr_t) frame.f_pc != trap0 &&
-#ifdef COMPAT_13
                     (caddr_t) frame.f_pc != trap1 &&
-#endif
                     (caddr_t) frame.f_pc != trap2 &&
                     (caddr_t) frame.f_pc != trap12 &&
                     (caddr_t) frame.f_pc != trap15 &&

	however, it looks like the real solution might be just to remove
	the DDB trace code in trap.c


>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: scottr 
State-Changed-When: Sun Oct 31 01:19:25 PDT 1999 
State-Changed-Why:  
This code was entirely removed as a result of a rewrite done by 
ITOH Yasufumi. 
>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.