Put a dummy function in here that uses a couple of the types.
Otherwise, gcc won't emit any debug info.
This commit is contained in:
parent
6a33531fe1
commit
884b58c222
|
@ -1,10 +1,10 @@
|
|||
/* $NetBSD: debugsyms.c,v 1.1 2008/01/17 20:14:49 joerg Exp $ */
|
||||
/* $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.1 2008/01/17 20:14:49 joerg Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: debugsyms.c,v 1.2 2008/06/06 13:21:00 ad Exp $");
|
||||
|
||||
#define _CALLOUT_PRIVATE
|
||||
#define __MUTEX_PRIVATE
|
||||
|
@ -23,3 +23,16 @@ __KERNEL_RCSID(0, "$NetBSD: debugsyms.c,v 1.1 2008/01/17 20:14:49 joerg Exp $");
|
|||
#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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue