Subject: Re: db_onpanic undeclered in subr_prf.c
To: Jasper Wallace <jasper@ivision.co.uk>
From: Jason Thorpe <thorpej@nas.nasa.gov>
List: current-users
Date: 01/10/1997 09:59:43
On Fri, 10 Jan 1997 17:44:30 +0000 (GMT) 
 Jasper Wallace <jasper@ivision.co.uk> wrote:

 > ../../../../kern/subr_prf.c
 > ../../../../kern/subr_prf.c: In function panic':
 > ../../../../kern/subr_prf.c:140: db_onpanic' undeclared (first use this
 > function)
 > ../../../../kern/subr_prf.c:140: (Each undeclared identifier is reported
 > only once
 > ../../../../kern/subr_prf.c:140: for each function it appears in.)
 > *** Error code 1
 > 
 > Stop.
 > 
 > something seems to of slipped in the ddb.onpanic sysctl additions

I had forgotten to check in a change to sys/sys/systm.h ... I've
corrected the problem, and it should be available for SUP now.  The
patch is attached below.

Sorry 'bout that.

Jason R. Thorpe                                       thorpej@nas.nasa.gov
NASA Ames Research Center                               Home: 408.866.1912
NAS: M/S 258-6                                          Work: 415.604.0935
Moffett Field, CA 94035                                Pager: 415.428.6939

 ----- snip -----

Index: systm.h
===================================================================
RCS file: /cvsroot/src/sys/sys/systm.h,v
retrieving revision 1.62
retrieving revision 1.63
diff -c -r1.62 -r1.63
*** systm.h	1996/11/18 05:18:04	1.62
--- systm.h	1997/01/09 16:57:14	1.63
***************
*** 1,4 ****
! /*	$NetBSD: systm.h,v 1.62 1996/11/18 05:18:04 jonathan Exp $	*/
  
  /*-
   * Copyright (c) 1982, 1988, 1991, 1993
--- 1,4 ----
! /*	$NetBSD: systm.h,v 1.63 1997/01/09 16:57:14 thorpej Exp $	*/
  
  /*-
   * Copyright (c) 1982, 1988, 1991, 1993
***************
*** 261,266 ****
--- 261,267 ----
  /* debugger entry points */
  void	Debugger __P((void));	/* in DDB only */
  int	read_symtab_from_file __P((struct proc *,struct vnode *,const char *));
+ extern	int db_onpanic;
  #endif	/* DDB */
  
  #endif	/* !_SYS_SYSTM_H_ */