Up to [cvs.NetBSD.org] / src / sbin / savecore
Request diff between arbitrary revisions
Default branch: MAIN
Current tag: netbsd-2-0-RC2
Revision 1.61.2.3 / (download) - annotate - [select for diffs], Wed Jul 14 11:38:02 2004 UTC (19 years, 9 months ago) by tron
Branch: netbsd-2-0
CVS Tags: netbsd-2-base,
netbsd-2-1-RELEASE,
netbsd-2-1-RC6,
netbsd-2-1-RC5,
netbsd-2-1-RC4,
netbsd-2-1-RC3,
netbsd-2-1-RC2,
netbsd-2-1-RC1,
netbsd-2-1,
netbsd-2-0-RELEASE,
netbsd-2-0-RC5,
netbsd-2-0-RC4,
netbsd-2-0-RC3,
netbsd-2-0-RC2,
netbsd-2-0-RC1,
netbsd-2-0-3-RELEASE,
netbsd-2-0-2-RELEASE,
netbsd-2-0-1-RELEASE,
netbsd-2
Changes since 1.61.2.2: +9 -8
lines
Diff to previous 1.61.2.2 (colored) to branchpoint 1.61 (colored) next main 1.62 (colored)
Pull up revision 1.64 (requested by tls in ticket #650): Fix an integer overflow that prevented saving cores from machines with more than 2GB of RAM. "dumpsize" in the on-disk core header is in pages, but, unfortunately, c.size in our kcore format is an unsigned 32-bit int, gross. We sleaze it, using a 64-bit int internally here and handing it to libkvm as a *signed* 32-bit int. Won't always work, but shouldn't be broken any worse than it is now, and sometimes work better. We must fix the kcore format and libkvm.