summaryrefslogtreecommitdiffstats
path: root/gnu
diff options
context:
space:
mode:
authormarcel <marcel@FreeBSD.org>2012-04-27 20:16:20 +0000
committermarcel <marcel@FreeBSD.org>2012-04-27 20:16:20 +0000
commitb9326e9060e4cd1828f8f5972e01765be507e07e (patch)
tree1053852441566b1f69de890538be8f9d3c98c2a7 /gnu
parent83be402c4a9db2f79d58c7eebd21137c7c2a802b (diff)
downloadFreeBSD-src-b9326e9060e4cd1828f8f5972e01765be507e07e.zip
FreeBSD-src-b9326e9060e4cd1828f8f5972e01765be507e07e.tar.gz
Allow building a powerpc cross-kgdb.
Diffstat (limited to 'gnu')
-rw-r--r--gnu/usr.bin/gdb/kgdb/trgt_powerpc.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/gnu/usr.bin/gdb/kgdb/trgt_powerpc.c b/gnu/usr.bin/gdb/kgdb/trgt_powerpc.c
index 6b8731b..a83c2d0 100644
--- a/gnu/usr.bin/gdb/kgdb/trgt_powerpc.c
+++ b/gnu/usr.bin/gdb/kgdb/trgt_powerpc.c
@@ -28,8 +28,13 @@
__FBSDID("$FreeBSD$");
#include <sys/types.h>
+#ifdef CROSS_DEBUGGER
+#include <sys/powerpc/include/pcb.h>
+#include <sys/powerpc/include/frame.h>
+#else
#include <machine/pcb.h>
#include <machine/frame.h>
+#endif
#include <err.h>
#include <kvm.h>
#include <string.h>
OpenPOWER on IntegriCloud