aboutsummaryrefslogtreecommitdiff
path: root/lib/libkvm/kvm_sparc.c
diff options
context:
space:
mode:
authorPeter Wemm <peter@FreeBSD.org>2005-06-29 22:39:41 +0000
committerPeter Wemm <peter@FreeBSD.org>2005-06-29 22:39:41 +0000
commite55a0cd805e090e95a80e45f1822cb9a81981d3c (patch)
tree39d1193a271289253e98780ca48579504e690508 /lib/libkvm/kvm_sparc.c
parent235a54de9dba1127b8cf6564007b9d70439a1a44 (diff)
downloadsrc-e55a0cd805e090e95a80e45f1822cb9a81981d3c.tar.gz
src-e55a0cd805e090e95a80e45f1822cb9a81981d3c.zip
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
Notes
Notes: svn path=/head/; revision=147672
Diffstat (limited to 'lib/libkvm/kvm_sparc.c')
-rw-r--r--lib/libkvm/kvm_sparc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libkvm/kvm_sparc.c b/lib/libkvm/kvm_sparc.c
index c74e5579ed73..57b881d986d4 100644
--- a/lib/libkvm/kvm_sparc.c
+++ b/lib/libkvm/kvm_sparc.c
@@ -216,7 +216,7 @@ int
_kvm_kvatop(kd, va, pa)
kvm_t *kd;
u_long va;
- u_long *pa;
+ uint64_t *pa;
{
struct vmstate *vm;
int s;