diff options
author | jmg <jmg@FreeBSD.org> | 2014-02-12 02:08:42 +0000 |
---|---|---|
committer | jmg <jmg@FreeBSD.org> | 2014-02-12 02:08:42 +0000 |
commit | bb95603de9a93939d8ba9a9f58708df1029adac8 (patch) | |
tree | 78b07eeb9a4a31d7228f6e725efffa6e5dcbb49b /lib | |
parent | 7a66b3978d8c1fb6a34d104a74042f34e4516833 (diff) | |
download | FreeBSD-src-bb95603de9a93939d8ba9a9f58708df1029adac8.zip FreeBSD-src-bb95603de9a93939d8ba9a9f58708df1029adac8.tar.gz |
add support for building a cross-gdb for ARM... This isn't hooked up
to xdev yet as I don't know how to make it work properly... It also
isn't heavily tested...
Reviewed by: silence on -arm
Diffstat (limited to 'lib')
-rw-r--r-- | lib/libkvm/kvm_arm.c | 6 | ||||
-rw-r--r-- | lib/libkvm/kvm_minidump_arm.c | 8 |
2 files changed, 13 insertions, 1 deletions
diff --git a/lib/libkvm/kvm_arm.c b/lib/libkvm/kvm_arm.c index b1274e9..d221f6a 100644 --- a/lib/libkvm/kvm_arm.c +++ b/lib/libkvm/kvm_arm.c @@ -42,11 +42,15 @@ __FBSDID("$FreeBSD$"); #include <sys/elf32.h> #include <sys/mman.h> +#ifndef CROSS_LIBKVM #include <vm/vm.h> #include <vm/vm_param.h> #include <vm/pmap.h> - #include <machine/pmap.h> +#else +#include "../../sys/arm/include/pte.h" +#include "../../sys/arm/include/vmparam.h" +#endif #include <db.h> #include <limits.h> diff --git a/lib/libkvm/kvm_minidump_arm.c b/lib/libkvm/kvm_minidump_arm.c index f6147d0..f4ba604 100644 --- a/lib/libkvm/kvm_minidump_arm.c +++ b/lib/libkvm/kvm_minidump_arm.c @@ -34,7 +34,9 @@ __FBSDID("$FreeBSD$"); */ #include <sys/param.h> +#ifndef CROSS_LIBKVM #include <sys/user.h> +#endif #include <sys/proc.h> #include <sys/stat.h> #include <sys/mman.h> @@ -45,12 +47,18 @@ __FBSDID("$FreeBSD$"); #include <nlist.h> #include <kvm.h> +#ifndef CROSS_LIBKVM #include <vm/vm.h> #include <vm/vm_param.h> #include <machine/elf.h> #include <machine/cpufunc.h> #include <machine/minidump.h> +#else +#include "../../sys/arm/include/pte.h" +#include "../../sys/arm/include/vmparam.h" +#include "../../sys/arm/include/minidump.h" +#endif #include <limits.h> |