884b58c222
Otherwise, gcc won't emit any debug info.
39 lines
816 B
C
39 lines
816 B
C
/* $NetBSD: debugsyms.c,v 1.2 2008/06/06 13:21:00 ad Exp $ */
|
|
/*
|
|
* This file is in the public domain.
|
|
*/
|
|
|
|
#include <sys/cdefs.h>
|
|
__KERNEL_RCSID(0, "$NetBSD: debugsyms.c,v 1.2 2008/06/06 13:21:00 ad Exp $");
|
|
|
|
#define _CALLOUT_PRIVATE
|
|
#define __MUTEX_PRIVATE
|
|
|
|
#include <sys/param.h>
|
|
#include <sys/lwp.h>
|
|
#include <sys/mbuf.h>
|
|
#include <sys/mutex.h>
|
|
#include <sys/proc.h>
|
|
#include <sys/sched.h>
|
|
#include <sys/sleepq.h>
|
|
#include <sys/time.h>
|
|
#include <sys/ucontext.h>
|
|
#include <sys/uio.h>
|
|
#include <sys/un.h>
|
|
#include <sys/unpcb.h>
|
|
#include <sys/user.h>
|
|
#include <sys/vnode.h>
|
|
|
|
/*
|
|
* Without a dummy function referencing some of the types, gcc will
|
|
* not emit any debug information.
|
|
*/
|
|
proc_t *_debugsym_dummyfunc(vnode_t *vp);
|
|
|
|
proc_t *
|
|
_debugsym_dummyfunc(vnode_t *vp)
|
|
{
|
|
|
|
return ((lwp_t *)vp->v_mount)->l_proc;
|
|
}
|