user_backtrace() is used if DEBUG or USERTRACE is defined, but not DIAGNOSTIC.
This commit is contained in:
parent
7989b67eb5
commit
061b204c56
|
@ -1,4 +1,4 @@
|
||||||
/* $NetBSD: trap.c,v 1.23 2004/08/07 21:47:05 chs Exp $ */
|
/* $NetBSD: trap.c,v 1.24 2005/02/17 14:19:49 tsutsui Exp $ */
|
||||||
|
|
||||||
/*-
|
/*-
|
||||||
* Copyright (c) 2001, 2002 The NetBSD Foundation, Inc.
|
* Copyright (c) 2001, 2002 The NetBSD Foundation, Inc.
|
||||||
|
@ -69,7 +69,7 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <sys/cdefs.h>
|
#include <sys/cdefs.h>
|
||||||
__KERNEL_RCSID(0, "$NetBSD: trap.c,v 1.23 2004/08/07 21:47:05 chs Exp $");
|
__KERNEL_RCSID(0, "$NetBSD: trap.c,v 1.24 2005/02/17 14:19:49 tsutsui Exp $");
|
||||||
|
|
||||||
/* #define INTRDEBUG */
|
/* #define INTRDEBUG */
|
||||||
/* #define TRAPDEBUG */
|
/* #define TRAPDEBUG */
|
||||||
|
@ -312,7 +312,7 @@ trap_kdebug(int type, int code, struct trapframe *frame)
|
||||||
#define trap_kdebug(t, c, f) (0)
|
#define trap_kdebug(t, c, f) (0)
|
||||||
#endif /* !KGDB && !DDB */
|
#endif /* !KGDB && !DDB */
|
||||||
|
|
||||||
#ifdef DIAGNOSTIC
|
#if defined(DEBUG) || defined(USERTRACE)
|
||||||
/*
|
/*
|
||||||
* These functions give a crude usermode backtrace. They
|
* These functions give a crude usermode backtrace. They
|
||||||
* really only work when code has been compiled without
|
* really only work when code has been compiled without
|
||||||
|
@ -400,7 +400,7 @@ user_backtrace(struct trapframe *tf, struct lwp *l, int type)
|
||||||
}
|
}
|
||||||
user_backtrace_raw(tf->tf_iioq_head, fp);
|
user_backtrace_raw(tf->tf_iioq_head, fp);
|
||||||
}
|
}
|
||||||
#endif /* DIAGNOSTIC */
|
#endif /* DEBUG || USERTRACE */
|
||||||
|
|
||||||
#ifdef DEBUG
|
#ifdef DEBUG
|
||||||
/*
|
/*
|
||||||
|
|
Loading…
Reference in New Issue