aboutsummaryrefslogtreecommitdiff
path: root/sys/ddb
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 /sys/ddb
parent64aa915f8a6f76cd012297dffc95a6ccfc8c7c0e (diff)
Notes
Diffstat (limited to 'sys/ddb')
-rw-r--r--sys/ddb/db_command.c2
-rw-r--r--sys/ddb/db_thread.c12
2 files changed, 2 insertions, 12 deletions
diff --git a/sys/ddb/db_command.c b/sys/ddb/db_command.c
index db791582f29a0..2fb0b9b4f33b4 100644
--- a/sys/ddb/db_command.c
+++ b/sys/ddb/db_command.c
@@ -145,7 +145,7 @@ static struct command db_cmds[] = {
{ "reset", db_reset, 0, NULL },
{ "kill", db_kill, CS_OWN, NULL },
{ "watchdog", db_watchdog, CS_OWN, NULL },
- { "thread", db_set_thread, CS_OWN, NULL },
+ { "thread", db_set_thread, 0, NULL },
{ "run", db_run_cmd, CS_OWN, NULL },
{ "script", db_script_cmd, CS_OWN, NULL },
{ "scripts", db_scripts_cmd, 0, NULL },
diff --git a/sys/ddb/db_thread.c b/sys/ddb/db_thread.c
index 98f2aa258d37c..7d9899b2685c7 100644
--- a/sys/ddb/db_thread.c
+++ b/sys/ddb/db_thread.c
@@ -55,20 +55,10 @@ void
db_set_thread(db_expr_t tid, bool hastid, db_expr_t cnt, char *mod)
{
struct thread *thr;
- db_expr_t radix;
int err;
- /*
- * We parse our own arguments. We don't like the default radix.
- */
- radix = db_radix;
- db_radix = 10;
- hastid = db_expression(&tid);
- db_radix = radix;
- db_skip_to_eol();
-
if (hastid) {
- thr = kdb_thr_lookup(tid);
+ thr = db_lookup_thread(tid, false);
if (thr != NULL) {
err = kdb_thr_select(thr);
if (err != 0) {