diff options
author | Robert Watson <rwatson@FreeBSD.org> | 2004-11-23 23:11:47 +0000 |
---|---|---|
committer | Robert Watson <rwatson@FreeBSD.org> | 2004-11-23 23:11:47 +0000 |
commit | a13aca1a8e76765af911beabbded4e84b6d5703e (patch) | |
tree | 6b3cf07e1a3bccc8734cbd232e8228d3ab0bf4f8 /sys/ddb | |
parent | 2afce774e7448f9da2c9e4f73c48a41fdde6663f (diff) | |
download | src-a13aca1a8e76765af911beabbded4e84b6d5703e.tar.gz src-a13aca1a8e76765af911beabbded4e84b6d5703e.zip |
Notes
Diffstat (limited to 'sys/ddb')
-rw-r--r-- | sys/ddb/db_command.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/sys/ddb/db_command.c b/sys/ddb/db_command.c index b1ad9e50640a..2e45a3d2ae66 100644 --- a/sys/ddb/db_command.c +++ b/sys/ddb/db_command.c @@ -630,6 +630,7 @@ db_stack_trace(db_expr_t tid, boolean_t hastid, db_expr_t count, char *modif) { struct thread *td; db_expr_t radix; + pid_t pid; int t; /* @@ -662,5 +663,10 @@ db_stack_trace(db_expr_t tid, boolean_t hastid, db_expr_t count, char *modif) } } else td = kdb_thread; + if (td->td_proc != NULL) + pid = td->td_proc->p_pid; + else + pid = -1; + db_printf("Tracing pid %d tid %ld td %p\n", pid, (long)td->td_tid, td); db_trace_thread(td, count); } |