FreeBSD Bugzilla – Attachment 156511 Details for
Bug 200052
[patch] allow ddb "show proc" to display all arguments
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
ddb show proc patch
ddb_show_proc.patch (text/plain), 754 bytes, created by
luke.tw
on 2015-05-08 15:30:03 UTC
(
hide
)
Description:
ddb show proc patch
Filename:
MIME Type:
Creator:
luke.tw
Created:
2015-05-08 15:30:03 UTC
Size:
754 bytes
patch
obsolete
>Index: sys/ddb/db_ps.c >=================================================================== >--- sys/ddb/db_ps.c (revision 282632) >+++ sys/ddb/db_ps.c (working copy) >@@ -420,9 +420,16 @@ > p->p_leader); > if (p->p_sysent != NULL) > db_printf(" ABI: %s\n", p->p_sysent->sv_name); >- if (p->p_args != NULL) >- db_printf(" arguments: %.*s\n", (int)p->p_args->ar_length, >- p->p_args->ar_args); >+ if (p->p_args != NULL) { >+ db_printf(" arguments: "); >+ for (i = 0; i < p->p_args->ar_length; i++) { >+ if (p->p_args->ar_args[i] == '\0') >+ db_printf(" "); >+ else >+ db_printf("%c", p->p_args->ar_args[i]); >+ } >+ db_printf("\n"); >+ } > db_printf(" threads: %d\n", p->p_numthreads); > FOREACH_THREAD_IN_PROC(p, td) { > dumpthread(p, td, 1);
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 200052
: 156511