aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrsc <devnull@localhost>2005-01-23 22:55:46 +0000
committerrsc <devnull@localhost>2005-01-23 22:55:46 +0000
commit3264d2e25ece5df7cb7e1015aae82d156c058e36 (patch)
tree1a28a1e8dcb5194f5639db8134145aa10a3f3576
parentd925d643cba25a7a3b7f530a42fb8dbc4e2f176e (diff)
downloadplan9port-3264d2e25ece5df7cb7e1015aae82d156c058e36.tar.gz
plan9port-3264d2e25ece5df7cb7e1015aae82d156c058e36.tar.bz2
plan9port-3264d2e25ece5df7cb7e1015aae82d156c058e36.zip
document core and stack
-rw-r--r--man/man1/core.124
-rw-r--r--man/man1/db.120
2 files changed, 31 insertions, 13 deletions
diff --git a/man/man1/core.1 b/man/man1/core.1
index b0a5b161..51d235fb 100644
--- a/man/man1/core.1
+++ b/man/man1/core.1
@@ -4,9 +4,6 @@ core \- print information about dead processes
.SH SYNOPSIS
.B core
[
-.B -s
-]
-[
.I dir
|
.I corefile
@@ -27,11 +24,18 @@ in that directory.
.PP
For each core file read,
.I core
-prints the date and time the core was generated,
-the command that generated it, and, if the
-.B -s
-option is given, a short stack trace
-at the time of the core dump.
+prints the command
+.B stack
+.IR file ,
+the date and time the core was generated,
+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
If no arguments are given,
.I core
@@ -49,7 +53,3 @@ searches the current directory.
.IR acid (1),
.IR db (1),
.IR core (5)
-.SH BUGS
-The
-.B -s
-option is not implemented.
diff --git a/man/man1/db.1 b/man/man1/db.1
index 38c8fc14..5d0945d1 100644
--- a/man/man1/db.1
+++ b/man/man1/db.1
@@ -14,6 +14,16 @@ db \- debugger
|
.I corefile
]
+.PP
+.B stack
+[
+.I textfile
+]
+[
+.I pid
+|
+.I corefile
+]
.SH DESCRIPTION
.I Db
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
are not permitted.
.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
.I db
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
BUGS section.
.SH "SEE ALSO"
-.IR acid (1)
+.IR acid (1),
+.IR core (1)
.SH SOURCE
.B \*9/src/cmd/db
.SH DIAGNOSTICS