kgdb - Add -D_KERNEL_STRUCTURES to access kernel structures properly.
authorMatthew Dillon <dillon@apollo.backplane.com>
Fri, 11 Sep 2009 05:54:06 +0000 (22:54 -0700)
committerMatthew Dillon <dillon@apollo.backplane.com>
Fri, 11 Sep 2009 05:54:06 +0000 (22:54 -0700)
Reported-by: Stathis Kamperis
gnu/usr.bin/gdb/kgdb/Makefile

index 1f7119d..ee7f047 100644 (file)
@@ -6,6 +6,7 @@ SRCS=   kgdb.c kthr.c trgt.c trgt_${MACHINE_ARCH}.c
 CFLAGS+= -I${.OBJDIR}/../libgdb -I${.CURDIR}/../libgdb -I${BASEDIR}/include
 CFLAGS+= -I${BASEDIR}/bfd -I${BASEDIR}/gdb -I${BASEDIR}/gdb/config -I${.CURDIR}/../libbfd
 CFLAGS+= -I${.OBJDIR}/../libbfd
+CFLAGS+= -D_KERNEL_STRUCTURES
 
 DPADD= ${LIBEDIT} ${LIBKVM} ${LIBTERMCAP} ${LIBM}
 DPADD+=        ${GDBLIBS}