wiz
2d48dd26ee
Xref send-pr 1, not 8. Whitespace fixes while I'm here.
2001-04-03 11:17:31 +00:00
martin
1bb8e47f65
Make option flag variables static. This avoids a conflict between
...
'int compress' in savecore.c and the function 'compress' in libz.
Gnu ld 2.10 (with BFD 2.10) used on sparc64 warns this conflict
(symbol "compress" changed size).
2001-01-11 20:27:12 +00:00
joda
7e74657e37
use gzip instead of compress
2001-01-02 21:39:37 +00:00
lukem
834e92eedc
Bump the field width of `K to go' from 6 to 8; some systems have more
...
than 999999 KB of RAM... (this will suffice until it's common to have
~ 100 GB of RAM :)
2001-01-02 00:29:37 +00:00
wiz
9bf97e8322
Back out sysctl part for now, awaiting the result of further discussion,
...
on request of Andrew Doran.
2000-12-11 14:33:51 +00:00
wiz
4c06e7a434
Output proper warning if dumplo == -1 (as it can happen on macppc without
...
swap partition), instead of "kvm_dump_mkheader: Pread: Invalid argument".
2000-12-08 22:03:23 +00:00
wiz
ba968ca2e4
de-__P(), and generally try to be more conforming to the new NetBSD style.
...
Use %m in syslog strings where appropriate.
Reduce warnings with WARNS=2.
2000-12-07 03:55:44 +00:00
wiz
a934922366
Don't mention rc(8), we're using rc.d now.
2000-12-07 03:18:03 +00:00
wiz
e7fe5f1380
Fix argument handling, which was pretty broken.
...
If sysctl supports it, try to get the kernel name with CPU_BOOTED_KERNEL.
Get current kernels version string in all cases.
Adapt some error messages to the correct kernel name.
Reviewed by Simon Burge.
2000-12-07 03:17:17 +00:00
darrenr
a2d10b89c2
initialize kernel to _PATH_UNIX and remove local variables in functions
...
which are essentially copies of kernel.
2000-10-08 07:04:28 +00:00
darrenr
3904e69e83
savecore was looking up dumpdev, etc, from the wrong kernel
2000-10-01 02:27:06 +00:00
eeh
baf03fd97c
time is a `struct timeval' not a `time_t', so read it in properly.
2000-08-01 16:46:27 +00:00
pooka
d09ff64b04
.core.Z, not .Z.core.
...
Reported by Wolfgang Helbig in pr/9684
2000-03-27 13:06:46 +00:00
sommerfeld
3a73fcfff7
Include clues on what to do with the crash dump once you've got it
1999-11-20 19:57:01 +00:00
is
942ecedabb
Clarify description of ``-c''. (See PR 4511)
1999-09-17 10:20:01 +00:00
mycroft
c71139914f
s/on device/in [dirname]/, to be a bit clearer...
1999-08-02 00:33:01 +00:00
cgd
fb88e47b54
Remove an extraneous fclose() call which would cause savecore to crash
...
if the bounds file was unwritable (e.g. because /var was read-only).
Fix supplied by Ronald Khoo in PR#7887.
1999-07-01 08:53:35 +00:00
sommerfe
c805ae93c2
Crash dumps should *not* be world readable.
1999-02-27 20:40:30 +00:00
sommerfe
247b8c3e8c
Avoid truncating partition size in freespace calculation
1998-07-23 19:05:59 +00:00
kleink
13f28a764f
Need <time.h> for time() and ctime() prototypes.
1998-04-01 15:15:58 +00:00
thorpej
6c6e9b4c1c
NetBSD/mips uses new libkvm now, savecore_old.c is dead.
1998-02-19 23:43:37 +00:00
thorpej
a2b8a49572
Simplify savecore_old test ... MACHINE_ARCH == "mips".
1998-02-19 07:08:09 +00:00
thorpej
fc1ea31c1f
Avoid
1998-02-18 01:24:08 +00:00
thorpej
bd429b8d2c
i386
1998-02-18 01:24:07 +00:00
enami
0d4522a03f
Fix .Nm usage.
1997-10-20 09:11:16 +00:00
lukem
df57ac7d4f
resolve conflicts from lite-2 merge
1997-09-16 14:19:03 +00:00
mrg
52ff5d8fee
make these compile on the alpha after WARNS=1.
1997-09-16 08:37:01 +00:00
lukem
beb7c8b582
* cleanup for WARNS=1
...
* fix .Nm usage
* deprecate register
1997-09-15 11:08:44 +00:00
veego
5b6e4f8979
Remove a ( from an removed cast.
1997-08-26 07:13:18 +00:00
kleink
66105c37fc
Lseek(2) usage cleanup: the use of L_SET/L_INCR/L_XTND is deprecated,
...
use SEEK_SET/SEEK_CUR/SEEK_END instead.
1997-08-25 19:31:43 +00:00
pk
cceeb9e424
More error checking.
1997-05-19 16:28:03 +00:00
gwr
10e180cc49
Back out the .PATH.c changes. The .depend problem (and others)
...
will be fixed using the new .NOPATH make feature instead.
1997-05-08 21:11:01 +00:00
gwr
012e528f2e
Use .PATH.c: ...
1997-05-06 20:44:56 +00:00
thorpej
f48f58b0ab
mvme68k uses the new crash dump format now.
1997-04-25 18:16:44 +00:00
scottr
6e4e9dc804
mac68k uses new libkvm, now.
1997-04-23 19:33:15 +00:00
mrg
9d52d80cd8
set umask for savecore.
1997-04-21 12:50:43 +00:00
thorpej
e8183ec164
hp300 uses new savecore now
1997-04-09 22:10:23 +00:00
thorpej
2aca76bf3b
Sun3x and PowerPC both use new libkvm.
1997-03-30 23:42:24 +00:00
matthias
d67f3db782
The pc532 port now uses the new libkvm.
1997-02-08 09:38:06 +00:00
pk
b82932df85
sparc uses new savecore.c
1996-11-18 11:20:16 +00:00
cgd
0b10619181
make datas item copied out from kernel (panicstr) and/or used as kvm pointers
...
(panicloc) be 'long's, not 'int's.
1996-10-01 18:21:48 +00:00
cgd
d657ae260c
add alpha to the list of ports that use new savecore
1996-10-01 14:42:31 +00:00
leo
4982d25253
If kvm_dump_mkheader() returns 0, simply state 'no core dump' instead
...
of logging and error.
1996-06-23 20:30:39 +00:00
mhitch
aa441df377
Add amiga to the list of ports using the new savecore.
1996-05-12 04:36:29 +00:00
gwr
153f55fdef
Add sun3 to the list of ports using the new savecore.
...
Add -lkvm when linking the new savecore.
1996-05-08 17:00:10 +00:00
cgd
244a51db99
since the only difference between the old 'savecore' and the new one
...
is savecore.c, move it back into the 'savecore' dir (renamed as
savecore_old.c) so that the build is more 'normal,' and more like what
it used to be.
1996-03-30 06:48:58 +00:00
leo
08b137da1d
Omit kd_live argument to kvm_dump_mkheader().
1996-03-18 21:16:05 +00:00
leo
a10137a7e3
New libkvm/savecore implementation. With the following differences:
...
1) savecore will not access the dump or live-kernel directly. It
will always use the kvm-functions. Allowing it to work on kernels
that don't have a 1-1 PA-VA mapping.
2) the kvm-lib has some additional functions to accomplish 1
- kvm_dump_mkheader()
- kvm_dump_wrtheader()
- kvm_dump_inval()
3) the file formats of the dump generated by the kernel and the dump
generated by savecore have been changed. The file format now looks
like the format produced for 'normal' core dumps.
Ports not yet supporting the new kvm-format will be using libkvm.old/
savecore.old for the time being.
1996-03-16 10:29:36 +00:00
leo
12ae78d8f0
old savecore - do not update
1996-03-16 10:25:11 +00:00
mycroft
aca94000ae
Put the compression suffix *last*.
1996-03-08 08:52:12 +00:00