Fix ddb "show proc" to show full arguments
PR: 200052 Submitted by: Chang-Hsien Tsai <luke.tw AT gmail.com>
This commit is contained in:
parent
315048f2ad
commit
5f00f45775
@ -440,9 +440,16 @@ DB_SHOW_COMMAND(proc, db_show_proc)
|
||||
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 < (int)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);
|
||||
|
Loading…
Reference in New Issue
Block a user