Home | History | Annotate | only in /src/usr.sbin/kvm_mkdb
History log of /src/usr.sbin/kvm_mkdb
RevisionDateAuthorComments
 1.8 12-Sep-1999  itojun support coff image file.
(this is part of NetBSD/sh3 patches)
 1.7 30-Sep-1996  thorpej RCS id police.
 1.6 29-Sep-1996  cgd Add ECOFF and ELF32/ELF64 support, both written from scratch.
Also, fix things so that on unexpected exit, no temporary file is
left around.
 1.5 22-Dec-1994  cgd specify man pages the new way.
 1.4 11-Jun-1994  mycroft Fix up RCS ids.
 1.3 10-Jun-1994  pk Update to 4.4-lite, local changes to man page.
 1.2 30-Jul-1993  mycroft Add RCS identifiers.
 1.1 21-Mar-1993  cgd branches: 1.1.1;
Initial revision
 1.1.1.2 29-Aug-1994  mycroft Import original 4.4-Lite version.
 1.1.1.1 21-Mar-1993  cgd initial import of 386bsd-0.1 sources
 1.20 23-Jan-2018  sevan ansify - drop the K&R style prototypes & implementations.
 1.19 07-Aug-2003  agc Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22366, verified by myself.
 1.18 11-Jul-2002  scw Define NLIST_ELF32 and Define NLIST_ELF64 for SH5.
 1.17 10-Jun-2002  fredette Use NLIST_ELF32 for hppa.
 1.16 05-Jun-2002  fvdl Use NLIST_ELF64 for x86-64.
 1.15 16-Apr-2002  msaitoh fix a check of the cpu types from __sh3__ to __sh__
 1.14 19-Feb-2002  thorpej Support Elf32 on VAX.
 1.13 17-Feb-2001  bjh21 Make both ARM ports support both NLIST_AOUT and NLIST_ELF32.
 1.12 14-Jun-2000  cgd fix up NetBSD RCS Ids to match the standard, and the leading comment as
to match as well. No functional changes.
 1.11 09-May-2000  bjh21 branches: 1.11.2;
Initial commit of arm26 port
 1.10 12-Sep-1999  itojun support coff image file.
(this is part of NetBSD/sh3 patches)
 1.9 29-Jan-1999  thorpej Add ELF support for i386 and m68k.
 1.8 17-Jan-1999  eeh We need to support both elf32 and elf64 for sparc64.
 1.7 17-Oct-1997  lukem WARNSify, getopt returns -1 not EOF
 1.6 15-Jun-1997  thorpej Sync "which nlist formats should I support?" with libc's nlist code.
Makes kvm_mkdb work properly on MIPS and PowerPC.
 1.5 03-Oct-1996  cgd since get_kerntext() is only used by the a.out code, move it there and
make it private.
 1.4 30-Sep-1996  thorpej RCS id police.
 1.3 29-Sep-1996  cgd Add ECOFF and ELF32/ELF64 support, both written from scratch.
Also, fix things so that on unexpected exit, no temporary file is
left around.
 1.2 11-Jun-1994  mycroft Fix up RCS ids.
 1.1 10-Jun-1994  pk branches: 1.1.1;
Update to 4.4-lite, local changes to man page.
 1.1.1.1 29-Aug-1994  mycroft Import original 4.4-Lite version.
 1.11.2.1 22-Jun-2000  minoura Sync w/ netbsd-1-5-base.
 1.14 07-Aug-2003  agc Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22366, verified by myself.
 1.13 06-May-2003  wiz Bump date for last.
 1.12 03-May-2003  ragge Note change to use /dev/ksyms. Add BUGS section.
 1.11 24-Sep-1999  msaitoh add "-o database" option to specify alternate database file path.
 1.10 06-Feb-1998  perry branches: 1.10.4;
macroize BSD, NetBSD, FreeBSD and misc cleanup
 1.9 17-Oct-1997  lukem WARNSify, getopt returns -1 not EOF
 1.8 12-Oct-1996  cgd Create only /var/db/kvm.db, and only create it if it doesn't
already match the running kernel. Fixes an inconsistency
where /var/db/kvm_filename.db would be created, but only
if /var/db/kvm_netbsd.db didn't match the running kernel.
 1.7 30-Sep-1996  thorpej RCS id police.
 1.6 11-Jun-1994  mycroft Fix up RCS ids.
 1.5 10-Jun-1994  pk Update to 4.4-lite, local changes to man page.
 1.4 01-Aug-1993  mycroft Add RCS indentifiers.
 1.3 13-Jun-1993  mycroft Fix up FILES sections.
 1.2 13-Jun-1993  mycroft Update file names.
 1.1 21-Mar-1993  cgd branches: 1.1.1;
Initial revision
 1.1.1.2 29-Aug-1994  mycroft Import original 4.4-Lite version.
 1.1.1.1 21-Mar-1993  cgd initial import of 386bsd-0.1 sources
 1.10.4.1 27-Dec-1999  wrstuden Pull up to last week's -current.
 1.21 23-Jan-2018  sevan ansify - drop the K&R style prototypes & implementations.
 1.20 21-Jul-2008  lukem Remove the \n and tabs from the __COPYRIGHT() strings.
Tweak to use a consistent format.
 1.19 07-Aug-2003  agc branches: 1.19.32;
Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22366, verified by myself.
 1.18 02-May-2003  ragge Teach kvm_mkdb to use /dev/ksyms if possible.
 1.17 14-Jun-2000  cgd fix up NetBSD RCS Ids to match the standard, and the leading comment as
to match as well. No functional changes.
 1.16 23-Oct-1999  msaitoh branches: 1.16.4;
skip check if the output database file name != "/var/db/kvm.db"
 1.15 24-Sep-1999  msaitoh add "-o database" option to specify alternate database file path.
 1.14 18-Oct-1997  lukem branches: 1.14.6;
deprecate register, use memset/memmove instead of bzero/bcopy
 1.13 17-Oct-1997  lukem WARNSify, getopt returns -1 not EOF
 1.12 12-Oct-1996  cgd Create only /var/db/kvm.db, and only create it if it doesn't
already match the running kernel. Fixes an inconsistency
where /var/db/kvm_filename.db would be created, but only
if /var/db/kvm_netbsd.db didn't match the running kernel.
 1.11 30-Sep-1996  cgd clean up Lite2 merge. Only real difference is this now includes <unistd.h>
and new Berkeley SCCS ID.
 1.10 30-Sep-1996  thorpej RCS id police.
 1.9 29-Sep-1996  cgd Add ECOFF and ELF32/ELF64 support, both written from scratch.
Also, fix things so that on unexpected exit, no temporary file is
left around.
 1.8 29-Aug-1994  mycroft Major speed improvement.
 1.7 11-Jun-1994  mycroft branches: 1.7.2;
Fix up RCS ids.
 1.6 10-Jun-1994  pk Update to 4.4-lite, local changes to man page.
 1.5 02-Dec-1993  pk Get offset of `_version' right for sparc.
Remove temporary file on error exit.
Some general cleanup.
 1.4 01-Aug-1993  mycroft Add RCS identifiers.
 1.3 10-Jul-1993  cgd patch from Paul Kranenburg <pk@cs.few.eur.nl> so that if given a kernel
name, kvm_mkdb will work properly.
 1.2 21-Apr-1993  proven Changed hash_open to dbopen.
 1.1 21-Mar-1993  cgd branches: 1.1.1;
Initial revision
 1.1.1.3 30-Sep-1996  cgd Lite2 version of kvm_mkdb
 1.1.1.2 29-Aug-1994  mycroft Import original 4.4-Lite version.
 1.1.1.1 21-Mar-1993  cgd initial import of 386bsd-0.1 sources
 1.7.2.1 30-Aug-1994  cgd from trunk.
 1.14.6.1 27-Dec-1999  wrstuden Pull up to last week's -current.
 1.16.4.1 22-Jun-2000  minoura Sync w/ netbsd-1-5-base.
 1.19.32.1 18-Sep-2008  wrstuden Sync with wrstuden-revivesa-base-2.
 1.20 23-Jan-2018  sevan ansify - drop the K&R style prototypes & implementations.
 1.19 07-Aug-2003  agc Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22366, verified by myself.
 1.18 14-Jun-2000  cgd fix up NetBSD RCS Ids to match the standard, and the leading comment as
to match as well. No functional changes.
 1.17 12-Sep-1999  itojun branches: 1.17.6;
support coff image file.
(this is part of NetBSD/sh3 patches)
 1.16 17-Oct-1997  lukem WARNSify, getopt returns -1 not EOF
 1.15 03-Oct-1996  cgd since get_kerntext() is only used by the a.out code, move it there and
make it private.
 1.14 30-Sep-1996  thorpej RCS id police.
 1.13 29-Sep-1996  cgd Add ECOFF and ELF32/ELF64 support, both written from scratch.
Also, fix things so that on unexpected exit, no temporary file is
left around.
 1.12 16-May-1996  cgd update comment for KERNTEXTOFF -> kerntextoff changes.
 1.11 16-May-1996  gwr Use the symbol "_kernel_text" if it exists, instead of KERNTEXTOFF.
This allows /usr/sbin/kvm_mkdb to be shared among m68k machines.
 1.10 11-Jun-1994  mycroft Fix up RCS ids.
 1.9 10-Jun-1994  pk Update to 4.4-lite, local changes to man page.
 1.8 05-Apr-1994  chopps don't think this ever really worked on non hp300 m68k machines.
 1.7 02-Dec-1993  pk Get offset of `_version' right for sparc.
Remove temporary file on error exit.
Some general cleanup.
 1.6 02-Aug-1993  mycroft Nuke remaining patchkit headers.
 1.5 01-Aug-1993  mycroft Add RCS identifiers.
 1.4 19-Jul-1993  mycroft branches: 1.4.2;
Fix kvm_mkdb to work with kernels loaded >=1MB. Note: This is a KLUGE, but
there is probably no better way to do it with a.out.
 1.3 18-Jul-1993  mycroft DUH. This is kvm_mkdb, not symorder. Display the correct name in error
messages.
 1.2 21-Mar-1993  cgd after 0.2.2 "stable" patches applied
 1.1 21-Mar-1993  cgd branches: 1.1.1;
Initial revision
 1.1.1.2 29-Aug-1994  mycroft Import original 4.4-Lite version.
 1.1.1.1 21-Mar-1993  cgd initial import of 386bsd-0.1 sources
 1.4.2.2 19-Jul-1993  mycroft Fix kvm_mkdb to work with kernels loaded >=1MB. Note: This is a KLUGE, but
there is probably no better way to do it with a.out.
 1.4.2.1 19-Jul-1993  mycroft file nlist.c was added on branch netbsd-0-9 on 1993-07-19 07:24:42 +0000
 1.17.6.1 22-Jun-2000  minoura Sync w/ netbsd-1-5-base.
 1.10 23-Jan-2018  sevan ansify - drop the K&R style prototypes & implementations.
 1.9 04-Jan-2011  wiz Fix fd leaks in error cases. Found by cppcheck.
 1.8 07-Aug-2003  agc Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22366, verified by myself.
 1.7 14-Jun-2000  cgd fix up NetBSD RCS Ids to match the standard, and the leading comment as
to match as well. No functional changes.
 1.6 05-Feb-1998  gwr branches: 1.6.8;
Begone KERNBASE, and KERNTEXTOFF too!
 1.5 18-Oct-1997  lukem deprecate register, use memset/memmove instead of bzero/bcopy
 1.4 17-Oct-1997  lukem WARNSify, getopt returns -1 not EOF
 1.3 03-Oct-1996  cgd since get_kerntext() is only used by the a.out code, move it there and
make it private.
 1.2 30-Sep-1996  thorpej RCS id police.
 1.1 29-Sep-1996  cgd Add ECOFF and ELF32/ELF64 support, both written from scratch.
Also, fix things so that on unexpected exit, no temporary file is
left around.
 1.6.8.1 22-Jun-2000  minoura Sync w/ netbsd-1-5-base.
 1.8 12-Nov-2003  grant s/netbsd.org/NetBSD.org/i
 1.7 19-Sep-2003  itojun realloc pedant
 1.6 15-Jul-2003  itojun use bounded string op
 1.5 22-Jul-2001  wiz seperate -> separate
 1.4 14-Jun-2000  cgd sweep of my licenses (userland files w/o only my copyright) for
consistency. (no functional changes)
 1.3 14-Jun-2000  cgd fix up NetBSD RCS Ids to match the standard, and the leading comment as
to match as well. No functional changes.
 1.2 07-Jan-2000  msaitoh branches: 1.2.2;
machine/exec_coff.h -> sys/exec_coff.h
 1.1 12-Sep-1999  itojun support coff image file.
(this is part of NetBSD/sh3 patches)
 1.2.2.1 22-Jun-2000  minoura Sync w/ netbsd-1-5-base.
 1.11 12-Nov-2003  grant s/netbsd.org/NetBSD.org/i
 1.10 19-Sep-2003  itojun realloc pedant
 1.9 15-Jul-2003  itojun use bounded string op
 1.8 22-Jul-2001  wiz seperate -> separate
 1.7 14-Jun-2000  cgd sweep of my licenses (userland files w/o only my copyright) for
consistency. (no functional changes)
 1.6 14-Jun-2000  cgd fix up NetBSD RCS Ids to match the standard, and the leading comment as
to match as well. No functional changes.
 1.5 15-Dec-1997  mrg branches: 1.5.8;
use MAP_PRIVATE|MAP_FILE
 1.4 17-Oct-1997  lukem WARNSify, getopt returns -1 not EOF
 1.3 03-Oct-1996  cgd fix slight thinko in that last change
 1.2 03-Oct-1996  cgd use ECOFF header, not get_kerntext() to help calculate version's file offset
 1.1 29-Sep-1996  cgd Add ECOFF and ELF32/ELF64 support, both written from scratch.
Also, fix things so that on unexpected exit, no temporary file is
left around.
 1.5.8.1 22-Jun-2000  minoura Sync w/ netbsd-1-5-base.
 1.19 28-Aug-2010  joerg Replace the current usage of Elf64_Half with Elf64_Word and rename
NetBSD specific Elf64_Quarter to Elf64_Half. This restores compatibility
with the common ELF specifications.
 1.18 12-Nov-2003  grant s/netbsd.org/NetBSD.org/i
 1.17 19-Sep-2003  itojun realloc pedant
 1.16 15-Jul-2003  itojun use bounded string op
 1.15 02-May-2003  ragge Teach kvm_mkdb to use /dev/ksyms if possible.
 1.14 22-Jul-2001  wiz seperate -> separate
 1.13 16-Mar-2001  agc Prevent a core dump if a kernel doesn't have a valid symbol section
header - instead, fail gracefully with a "no symbol section header
found" message.
 1.12 14-Jun-2000  cgd sweep of my licenses (userland files w/o only my copyright) for
consistency. (no functional changes)
 1.11 14-Jun-2000  cgd fix up NetBSD RCS Ids to match the standard, and the leading comment as
to match as well. No functional changes.
 1.10 04-Nov-1999  erh branches: 1.10.2;
Remove ELFNAME defines since they are defined in sys/exec_elf.h
 1.9 25-Oct-1999  kleink Update to match new SVR4-style definition names in <sys/exec_elf.h>.
 1.8 22-Oct-1999  hannken Undo last change. While these macros are defined in exec_elf.h, they are
enclosed by `#ifdef _KERNEL'.
 1.7 21-Oct-1999  erh Remove ELFNAME macros which are already defines in exec_elf.h
 1.6 15-Dec-1997  mrg branches: 1.6.4;
use MAP_PRIVATE|MAP_FILE
 1.5 23-Oct-1997  enami Work around GCC uninitialized variable warning.
 1.4 18-Oct-1997  lukem branches: 1.4.2;
deprecate register, use memset/memmove instead of bzero/bcopy
 1.3 17-Oct-1997  lukem WARNSify, getopt returns -1 not EOF
 1.2 03-Oct-1996  cgd fix pasto: Elf_{Off,Word} rather than Elf32_{Off,Word}
 1.1 29-Sep-1996  cgd Add ECOFF and ELF32/ELF64 support, both written from scratch.
Also, fix things so that on unexpected exit, no temporary file is
left around.
 1.4.2.1 23-Oct-1997  mellon Pull rev 1.5 up from trunk
 1.6.4.1 27-Dec-1999  wrstuden Pull up to last week's -current.
 1.10.2.1 22-Jun-2000  minoura Sync w/ netbsd-1-5-base.
 1.5 12-Nov-2003  grant s/netbsd.org/NetBSD.org/i
 1.4 14-Jun-2000  cgd sweep of my licenses (userland files w/o only my copyright) for
consistency. (no functional changes)
 1.3 14-Jun-2000  cgd fix up NetBSD RCS Ids to match the standard, and the leading comment as
to match as well. No functional changes.
 1.2 17-Oct-1997  lukem branches: 1.2.10;
WARNSify, getopt returns -1 not EOF
 1.1 29-Sep-1996  cgd Add ECOFF and ELF32/ELF64 support, both written from scratch.
Also, fix things so that on unexpected exit, no temporary file is
left around.
 1.2.10.1 22-Jun-2000  minoura Sync w/ netbsd-1-5-base.
 1.10 07-Aug-2003  agc Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22366, verified by myself.
 1.9 02-May-2003  ragge Remove some unneccessary kmem open/close code.
 1.8 19-Mar-2001  msaitoh Fix a long standing bug.

Old kvm_mkdb had a possibility to check old kernel's version
string retained at a hole between text segment and data segment.
It might happen a misunderstanding that the running kernel's version
matches kvm.db's version.

This had been caused by checking current kernel's version string
via /dev/kmem. The version string can get via sysctl, so use it!
 1.7 18-Oct-1997  lukem branches: 1.7.12;
deprecate register, use memset/memmove instead of bzero/bcopy
 1.6 17-Oct-1997  lukem WARNSify, getopt returns -1 not EOF
 1.5 11-Jan-1997  mikel make testdb() fail if database version string has length zero.
 1.4 12-Oct-1996  cgd Create only /var/db/kvm.db, and only create it if it doesn't
already match the running kernel. Fixes an inconsistency
where /var/db/kvm_filename.db would be created, but only
if /var/db/kvm_netbsd.db didn't match the running kernel.
 1.3 30-Sep-1996  thorpej RCS id police.
 1.2 11-Jun-1994  mycroft Fix up RCS ids.
 1.1 10-Jun-1994  pk branches: 1.1.1;
Update to 4.4-lite, local changes to man page.
 1.1.1.1 29-Aug-1994  mycroft Import original 4.4-Lite version.
 1.7.12.1 30-Mar-2001  he Pull up revision 1.8 (requested by msaitoh):
Use sysctl instead of kmem groveling to fetch version string of
running kernel.

RSS XML Feed