diff options
author | Martin Pieuchot <mpi@cvs.openbsd.org> | 2020-05-14 06:58:55 +0000 |
---|---|---|
committer | Martin Pieuchot <mpi@cvs.openbsd.org> | 2020-05-14 06:58:55 +0000 |
commit | 7d17a58cefc2bffd3f8fdbae7b1fead9db7fbca0 (patch) | |
tree | 3422793834475518140585bfbb48d859a36a728c | |
parent | f57fb0d0486d7aafc358ce2efaa001618a4eb084 (diff) |
Use '/t' on all architectures to get a trace via TID.
ok sthen@, patrick@
-rw-r--r-- | share/man/man4/ddb.4 | 10 | ||||
-rw-r--r-- | sys/arch/amd64/amd64/db_trace.c | 4 | ||||
-rw-r--r-- | sys/arch/i386/i386/db_trace.c | 4 | ||||
-rw-r--r-- | sys/arch/powerpc/ddb/db_trace.c | 4 |
4 files changed, 11 insertions, 11 deletions
diff --git a/share/man/man4/ddb.4 b/share/man/man4/ddb.4 index f8a978719d1..b4e6845e0ac 100644 --- a/share/man/man4/ddb.4 +++ b/share/man/man4/ddb.4 @@ -1,4 +1,4 @@ -.\" $OpenBSD: ddb.4,v 1.95 2019/12/06 19:15:16 jmc Exp $ +.\" $OpenBSD: ddb.4,v 1.96 2020/05/14 06:58:54 mpi Exp $ .\" $NetBSD: ddb.4,v 1.5 1994/11/30 16:22:09 jtc Exp $ .\" .\" Mach Operating System @@ -25,7 +25,7 @@ .\" any improvements or extensions that they make and grant Carnegie Mellon .\" the rights to redistribute these changes. .\" -.Dd $Mdocdate: December 6 2019 $ +.Dd $Mdocdate: May 14 2020 $ .Dt DDB 4 .Os .Sh NAME @@ -539,19 +539,19 @@ argument. .\" -------------------- .It Xo .Ic trace -.Op Cm /pu +.Op Cm /tu .Op Ar frameaddr Ns .Op Ic \&, Ns Ar count .Xc Show the stack trace. The -.Cm /p +.Cm /t modifier interprets the .Ar frameaddr argument as the TID of a process and shows the stack trace of that process. The -.Cm /p +.Cm /t modifier is not supported on all platforms. The .Cm /u diff --git a/sys/arch/amd64/amd64/db_trace.c b/sys/arch/amd64/amd64/db_trace.c index 34000b9fd3a..646d3d6100f 100644 --- a/sys/arch/amd64/amd64/db_trace.c +++ b/sys/arch/amd64/amd64/db_trace.c @@ -1,4 +1,4 @@ -/* $OpenBSD: db_trace.c,v 1.52 2020/04/18 04:45:20 visa Exp $ */ +/* $OpenBSD: db_trace.c,v 1.53 2020/05/14 06:58:54 mpi Exp $ */ /* $NetBSD: db_trace.c,v 1.1 2003/04/26 18:39:27 fvdl Exp $ */ /* @@ -101,7 +101,7 @@ db_stack_trace_print(db_expr_t addr, int have_addr, db_expr_t count, char c; while ((c = *cp++) != 0) { - if (c == 'p') + if (c == 't') trace_proc = 1; if (c == 'u') kernel_only = 0; diff --git a/sys/arch/i386/i386/db_trace.c b/sys/arch/i386/i386/db_trace.c index 09c630d0a81..cdd31038e45 100644 --- a/sys/arch/i386/i386/db_trace.c +++ b/sys/arch/i386/i386/db_trace.c @@ -1,4 +1,4 @@ -/* $OpenBSD: db_trace.c,v 1.41 2020/04/18 04:45:20 visa Exp $ */ +/* $OpenBSD: db_trace.c,v 1.42 2020/05/14 06:58:54 mpi Exp $ */ /* $NetBSD: db_trace.c,v 1.18 1996/05/03 19:42:01 christos Exp $ */ /* @@ -120,7 +120,7 @@ db_stack_trace_print(db_expr_t addr, int have_addr, db_expr_t count, char c; while ((c = *cp++) != 0) { - if (c == 'p') + if (c == 't') trace_proc = 1; if (c == 'u') kernel_only = 0; diff --git a/sys/arch/powerpc/ddb/db_trace.c b/sys/arch/powerpc/ddb/db_trace.c index 248d62be9d6..1f51b5df023 100644 --- a/sys/arch/powerpc/ddb/db_trace.c +++ b/sys/arch/powerpc/ddb/db_trace.c @@ -1,4 +1,4 @@ -/* $OpenBSD: db_trace.c,v 1.16 2020/04/18 04:45:20 visa Exp $ */ +/* $OpenBSD: db_trace.c,v 1.17 2020/05/14 06:58:54 mpi Exp $ */ /* $NetBSD: db_trace.c,v 1.15 1996/02/22 23:23:41 gwr Exp $ */ /* @@ -126,7 +126,7 @@ db_stack_trace_print(db_expr_t addr, int have_addr, db_expr_t count, int i, narg, trace_proc = 0; while ((c = *cp++) != 0) { - if (c == 'p') + if (c == 't') trace_proc = 1; } |