1 /* $NetBSD: debugsyms.c,v 1.2 2008/06/06 13:21:00 ad Exp $ */
3 * This file is in the public domain.
7 __KERNEL_RCSID(0, "$NetBSD: debugsyms.c,v 1.2 2008/06/06 13:21:00 ad Exp $");
9 #define _CALLOUT_PRIVATE
10 #define __MUTEX_PRIVATE
12 #include <sys/param.h>
15 #include <sys/mutex.h>
17 #include <sys/sched.h>
18 #include <sys/sleepq.h>
20 #include <sys/ucontext.h>
23 #include <sys/unpcb.h>
24 #include <sys/vnode.h>
27 * Without a dummy function referencing some of the types, gcc will
28 * not emit any debug information.
30 proc_t
*_debugsym_dummyfunc(vnode_t
*vp
);
33 _debugsym_dummyfunc(vnode_t
*vp
)
36 return ((lwp_t
*)vp
->v_mount
)->l_proc
;