1999-04-06 08:54:19 +04:00
|
|
|
.\" $NetBSD: dbsym.8,v 1.3 1999/04/06 04:54:21 cgd Exp $
|
1994-08-26 00:40:28 +04:00
|
|
|
.\"
|
|
|
|
.Dd 12 May 1994
|
|
|
|
.Dt DBSYM 8 sun3
|
|
|
|
.Os
|
|
|
|
.Sh NAME
|
|
|
|
.Nm dbsym
|
|
|
|
.Nd copy kernel symbol table into db_symtab space
|
|
|
|
.Sh SYNOPSIS
|
1997-10-17 09:47:27 +04:00
|
|
|
.Nm
|
1994-08-26 00:40:28 +04:00
|
|
|
.Ar kernel
|
|
|
|
.Sh DESCRIPTION
|
1997-10-17 09:47:27 +04:00
|
|
|
.Nm
|
1994-08-26 00:40:28 +04:00
|
|
|
is used to copy the symbol table in a newly linked kernel into the
|
1997-10-17 09:47:27 +04:00
|
|
|
.Va db_symtab
|
1994-08-26 00:40:28 +04:00
|
|
|
array (in the data section) so that the
|
1997-10-17 09:47:27 +04:00
|
|
|
.Xr ddb 4
|
1994-08-26 00:40:28 +04:00
|
|
|
kernel debugger can find the symbols. This is program is only used
|
|
|
|
on systems for which the boot program does not load the symbol table
|
|
|
|
into memory with the kernel. The space for these symbols is
|
|
|
|
reserved in the data segment using a config option like:
|
|
|
|
.Pp
|
|
|
|
.Li options SYMTAB_SPACE=72000
|
|
|
|
.Pp
|
|
|
|
The size of the db_symtab array (the value of SYMTAB_SPACE) must be
|
|
|
|
at least as large as the kernel symbol table. If insufficient space
|
|
|
|
is reserved, dbsym will refuse to copy the symbol table.
|
|
|
|
.Pp
|
|
|
|
Note that debugging symbols are not useful to the
|
1997-10-17 09:47:27 +04:00
|
|
|
.Xr ddb 4
|
1994-08-26 00:40:28 +04:00
|
|
|
kernel debugger, so to minimize the size of the kernel, one should
|
|
|
|
either compile the kernel without debugging symbols (no
|
1997-10-17 09:47:27 +04:00
|
|
|
.Fl g
|
1994-08-26 00:40:28 +04:00
|
|
|
flag) or use the
|
1997-10-17 09:47:27 +04:00
|
|
|
.Xr strip 1
|
1994-08-26 00:40:28 +04:00
|
|
|
command to strip debugging symbols from the kernel before
|
1997-10-17 09:47:27 +04:00
|
|
|
.Nm
|
1994-08-26 00:40:28 +04:00
|
|
|
is used to copy the symbol table. The command
|
|
|
|
.Pp
|
|
|
|
.Li strip -d netbsd
|
|
|
|
.Pp
|
|
|
|
will strip out debugging symbols.
|
1999-04-06 08:54:19 +04:00
|
|
|
.Sh SEE ALSO
|
1997-10-17 09:47:27 +04:00
|
|
|
.Xr strip 1 ,
|
|
|
|
.Xr ddb 4
|