document core and stack
This commit is contained in:
parent
d925d643cb
commit
3264d2e25e
2 changed files with 31 additions and 13 deletions
|
|
@ -4,9 +4,6 @@ core \- print information about dead processes
|
||||||
.SH SYNOPSIS
|
.SH SYNOPSIS
|
||||||
.B core
|
.B core
|
||||||
[
|
[
|
||||||
.B -s
|
|
||||||
]
|
|
||||||
[
|
|
||||||
.I dir
|
.I dir
|
||||||
|
|
|
|
||||||
.I corefile
|
.I corefile
|
||||||
|
|
@ -27,11 +24,18 @@ in that directory.
|
||||||
.PP
|
.PP
|
||||||
For each core file read,
|
For each core file read,
|
||||||
.I core
|
.I core
|
||||||
prints the date and time the core was generated,
|
prints the command
|
||||||
the command that generated it, and, if the
|
.B stack
|
||||||
.B -s
|
.IR file ,
|
||||||
option is given, a short stack trace
|
the date and time the core was generated,
|
||||||
at the time of the core dump.
|
and
|
||||||
|
the command that generated it.
|
||||||
|
The
|
||||||
|
.B stack
|
||||||
|
command, if run, prints a stack trace of the
|
||||||
|
executing thread at the time of the core dump;
|
||||||
|
see
|
||||||
|
.IR db (1).
|
||||||
.PP
|
.PP
|
||||||
If no arguments are given,
|
If no arguments are given,
|
||||||
.I core
|
.I core
|
||||||
|
|
@ -49,7 +53,3 @@ searches the current directory.
|
||||||
.IR acid (1),
|
.IR acid (1),
|
||||||
.IR db (1),
|
.IR db (1),
|
||||||
.IR core (5)
|
.IR core (5)
|
||||||
.SH BUGS
|
|
||||||
The
|
|
||||||
.B -s
|
|
||||||
option is not implemented.
|
|
||||||
|
|
|
||||||
|
|
@ -14,6 +14,16 @@ db \- debugger
|
||||||
|
|
|
|
||||||
.I corefile
|
.I corefile
|
||||||
]
|
]
|
||||||
|
.PP
|
||||||
|
.B stack
|
||||||
|
[
|
||||||
|
.I textfile
|
||||||
|
]
|
||||||
|
[
|
||||||
|
.I pid
|
||||||
|
|
|
||||||
|
.I corefile
|
||||||
|
]
|
||||||
.SH DESCRIPTION
|
.SH DESCRIPTION
|
||||||
.I Db
|
.I Db
|
||||||
is a general purpose debugging program.
|
is a general purpose debugging program.
|
||||||
|
|
@ -78,6 +88,13 @@ is given, the memfile map is associated with it;
|
||||||
otherwise the map is undefined and accesses to it
|
otherwise the map is undefined and accesses to it
|
||||||
are not permitted.
|
are not permitted.
|
||||||
.PP
|
.PP
|
||||||
|
.I Stack
|
||||||
|
takes the same arguments as
|
||||||
|
.IR db .
|
||||||
|
It prints a stack trace (see the
|
||||||
|
.B $c
|
||||||
|
command below) and then exits.
|
||||||
|
.PP
|
||||||
Commands to
|
Commands to
|
||||||
.I db
|
.I db
|
||||||
are read from the standard input and
|
are read from the standard input and
|
||||||
|
|
@ -939,7 +956,8 @@ is one the breakpoint will fire.
|
||||||
Beware that local variables may be stored in registers; see the
|
Beware that local variables may be stored in registers; see the
|
||||||
BUGS section.
|
BUGS section.
|
||||||
.SH "SEE ALSO"
|
.SH "SEE ALSO"
|
||||||
.IR acid (1)
|
.IR acid (1),
|
||||||
|
.IR core (1)
|
||||||
.SH SOURCE
|
.SH SOURCE
|
||||||
.B \*9/src/cmd/db
|
.B \*9/src/cmd/db
|
||||||
.SH DIAGNOSTICS
|
.SH DIAGNOSTICS
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue