diff options
author | peter <peter@FreeBSD.org> | 2005-06-29 22:39:41 +0000 |
---|---|---|
committer | peter <peter@FreeBSD.org> | 2005-06-29 22:39:41 +0000 |
commit | d93999836826da90a255a4a59fa2f6fe8f289425 (patch) | |
tree | 39d1193a271289253e98780ca48579504e690508 /lib/libkvm/kvm_powerpc.c | |
parent | 49bfde6bf0b6c2db289cd0ec08415985788c17e0 (diff) | |
download | FreeBSD-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_powerpc.c')
-rw-r--r-- | lib/libkvm/kvm_powerpc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libkvm/kvm_powerpc.c b/lib/libkvm/kvm_powerpc.c index 204d5e6..24ab7fb 100644 --- a/lib/libkvm/kvm_powerpc.c +++ b/lib/libkvm/kvm_powerpc.c @@ -68,7 +68,7 @@ int _kvm_kvatop(kd, va, pa) kvm_t *kd; u_long va; - u_long *pa; + off_t *pa; { _kvm_err(kd, 0, "vatop not yet implemented!"); return 0; |