$NetBSD: patch-an,v 1.1 2005/10/20 17:48:49 wiz Exp $

--- gdb/config/i386/nm-nbsd.h.orig	2004-02-22 09:20:22.000000000 -0700
+++ gdb/config/i386/nm-nbsd.h
@@ -23,7 +23,13 @@
 #ifndef NM_NBSD_H
 #define NM_NBSD_H
 
+#include <sys/param.h>
+
 /* Get generic NetBSD native definitions.  */
 #include "config/nm-nbsd.h"
 
+#include <sys/lock.h>
+#include <machine/vmparam.h>
+#define KERNEL_U_ADDR USRSTACK
+
 #endif /* nm-nbsd.h */
