summaryrefslogtreecommitdiffstats
path: root/lib/libkvm/kvm_private.h
diff options
context:
space:
mode:
authorpeter <peter@FreeBSD.org>2005-06-29 22:39:41 +0000
committerpeter <peter@FreeBSD.org>2005-06-29 22:39:41 +0000
commitd93999836826da90a255a4a59fa2f6fe8f289425 (patch)
tree39d1193a271289253e98780ca48579504e690508 /lib/libkvm/kvm_private.h
parent49bfde6bf0b6c2db289cd0ec08415985788c17e0 (diff)
downloadFreeBSD-src-d93999836826da90a255a4a59fa2f6fe8f289425.zip
FreeBSD-src-d93999836826da90a255a4a59fa2f6fe8f289425.tar.gz
Support crash dumps > 4GB in size on 32 bit platforms. _kvm_kvatop()
returned an lseek offset in a "u_long *" value, which can't express >4GB offsets on 32 bit machines (eg: PAE). Change to "off_t *" for all. Support ELF crashdumps on i386 and amd64. Support PAE crashdumps on i386. This is done by auto-detecting the presence of the IdlePDPT which means that PAE is active. I used Marcel's _kvm_pa2off strategy and ELF header reader for ELF support on amd64. Paul Saab ported the amd64 changes to i386 and we implemented the PAE support from there. Note that gdb6 in the src tree uses whatever libkvm supports. If you want to debug an old crash dump, you might want to keep an old libkvm.so handy and use LD_PRELOAD or the like. This does not detect the old raw dump format. Approved by: re
Diffstat (limited to 'lib/libkvm/kvm_private.h')
-rw-r--r--lib/libkvm/kvm_private.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libkvm/kvm_private.h b/lib/libkvm/kvm_private.h
index 6afe903..b0d696a 100644
--- a/lib/libkvm/kvm_private.h
+++ b/lib/libkvm/kvm_private.h
@@ -75,7 +75,7 @@ void _kvm_err(kvm_t *kd, const char *program, const char *fmt, ...)
void _kvm_freeprocs(kvm_t *kd);
void _kvm_freevtop(kvm_t *);
int _kvm_initvtop(kvm_t *);
-int _kvm_kvatop(kvm_t *, u_long, u_long *);
+int _kvm_kvatop(kvm_t *, u_long, off_t *);
void *_kvm_malloc(kvm_t *kd, size_t);
void *_kvm_realloc(kvm_t *kd, void *, size_t);
void _kvm_syserr (kvm_t *kd, const char *program, const char *fmt, ...)
OpenPOWER on IntegriCloud