NetBSD/sys/conf/debugsyms.c
joerg 0d7c94dad4 Add a stub file that includes a bunch of kernel headers and always get
compiled with -g. For the initial set, netbsd on amd64 grows by around
80KB. This allows much easier use of GDB for post-mortem debugging as
it can understand the layout of data structures. The additional data can
be strip(1)ped off normally for size constraint environments.
2008-01-17 20:14:49 +00:00

26 lines
581 B
C

/* $NetBSD: debugsyms.c,v 1.1 2008/01/17 20:14:49 joerg 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 $");
#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>