aboutsummaryrefslogtreecommitdiff
path: root/share/man/man4/ddb.4
diff options
context:
space:
mode:
authorConrad Meyer <cem@FreeBSD.org>2018-10-20 20:45:49 +0000
committerConrad Meyer <cem@FreeBSD.org>2018-10-20 20:45:49 +0000
commite41793db2c6a9681804c0dec29e6bd0b42667ec2 (patch)
tree803f9ee4ad7e0a2fe31e47da4f2a754d508db979 /share/man/man4/ddb.4
parent64aa915f8a6f76cd012297dffc95a6ccfc8c7c0e (diff)
downloadsrc-e41793db2c6a9681804c0dec29e6bd0b42667ec2.tar.gz
src-e41793db2c6a9681804c0dec29e6bd0b42667ec2.zip
ddb: Enable 'thread <address>'
Currently, the 'thread' command (to switch the debugger to another thread) only accepts decimal-encoded tids. Use the same parsing logic as 'show thread <arg>' to accept hex-encoded thread pointers in addition to decimal-encoded tids. Document the 'thread' command in ddb.4 and expand the 'show thread' documentation to cover the tid usage. Reported by: bwidawsk Reviewed by: bwidawsk (earlier version), kib (earlier version), markj Sponsored by: Dell EMC Isilon Differential Revision: https://reviews.freebsd.org/D16962
Notes
Notes: svn path=/head/; revision=339486
Diffstat (limited to 'share/man/man4/ddb.4')
-rw-r--r--share/man/man4/ddb.421
1 files changed, 16 insertions, 5 deletions
diff --git a/share/man/man4/ddb.4 b/share/man/man4/ddb.4
index 188b5c8fc5ec..639060097f08 100644
--- a/share/man/man4/ddb.4
+++ b/share/man/man4/ddb.4
@@ -60,7 +60,7 @@
.\"
.\" $FreeBSD$
.\"
-.Dd September 7, 2018
+.Dd September 21, 2018
.Dt DDB 4
.Os
.Sh NAME
@@ -1013,13 +1013,17 @@ For exact interpretation of output, visit
header file.
.\"
.Pp
-.It Ic show Cm thread Op Ar addr
+.It Ic show Cm thread Op Ar addr | tid
If no
.Ar addr
+or
+.Ar tid
is specified, show detailed information about current thread.
-Otherwise, information about thread at
-.Ar addr
-is printed.
+Otherwise, print information about the thread with ID
+.Ar tid
+or kernel address
+.Ar addr .
+(If the argument is a decimal number, it is assumed to be a tid.)
.\"
.Pp
.It Ic show Cm threads
@@ -1249,6 +1253,13 @@ rather than a traditional memory dump or minidump.
reports whether a textdump has been scheduled.
.Ic textdump unset
cancels a request to perform a textdump as the next kernel core dump.
+.Pp
+.It Ic thread Ar addr | tid
+Switch the debugger to the thread with ID
+.Ar tid ,
+if the argument is a decimal number, or address
+.Ar addr ,
+otherwise.
.El
.Sh VARIABLES
The debugger accesses registers and variables as