summaryrefslogtreecommitdiffstats
path: root/lib/libkvm/Makefile
diff options
context:
space:
mode:
authorpeter <peter@FreeBSD.org>2006-04-21 04:32:51 +0000
committerpeter <peter@FreeBSD.org>2006-04-21 04:32:51 +0000
commitaeeca95e16a25ef1697a410a1c75cedb6f3fcd27 (patch)
treec546335c0248613d0123d64bcdb8f956ae439af1 /lib/libkvm/Makefile
parent3fd2125c991b07c464f53c893b51e9d74bea6859 (diff)
downloadFreeBSD-src-aeeca95e16a25ef1697a410a1c75cedb6f3fcd27.zip
FreeBSD-src-aeeca95e16a25ef1697a410a1c75cedb6f3fcd27.tar.gz
Teach libkvm how to read minidumps. It turns out that minidumps are
far more convenient for libkvm to work with because of the page table block at the beginning. As a result, the MD code is smaller. libkvm will automatically detect old vs mini dumps on i386 and amd64. libkvm will handle i386 PAE and non-PAE modes. There is a PAE flag in the i386 minidump header to signal the width of the entries in the page table block. Other convenient values are also present, such as kernbase and the direct map addresses on amd64.
Diffstat (limited to 'lib/libkvm/Makefile')
-rw-r--r--lib/libkvm/Makefile3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/libkvm/Makefile b/lib/libkvm/Makefile
index 33081c4..8008c89 100644
--- a/lib/libkvm/Makefile
+++ b/lib/libkvm/Makefile
@@ -6,6 +6,9 @@ SHLIBDIR?= /lib
CFLAGS+=-DLIBC_SCCS -I${.CURDIR}
SRCS= kvm.c kvm_${MACHINE_ARCH}.c kvm_file.c kvm_getloadavg.c \
kvm_getswapinfo.c kvm_proc.c
+.if ${MACHINE_ARCH} == "amd64" || ${MACHINE_ARCH} == "i386"
+SRCS+= kvm_minidump_${MACHINE_ARCH}.c
+.endif
INCS= kvm.h
MAN= kvm.3 kvm_geterr.3 kvm_getfiles.3 kvm_getloadavg.3 kvm_getprocs.3 \
OpenPOWER on IntegriCloud