]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
ddb: Enable 'thread <address>'
authorcem <cem@FreeBSD.org>
Sat, 20 Oct 2018 20:45:49 +0000 (20:45 +0000)
committercem <cem@FreeBSD.org>
Sat, 20 Oct 2018 20:45:49 +0000 (20:45 +0000)
commit9623f417028e1305c9fe8ce4981ad71ea9ef9c69
tree803f9ee4ad7e0a2fe31e47da4f2a754d508db979
parentc598d9b4dbe8d400bb0d45a090f406500235cb1c
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
share/man/man4/ddb.4
sys/ddb/db_command.c
sys/ddb/db_thread.c