svn commit: r265183 - user/dchagin/lemul/sys/ddb
Dmitry Chagin
dchagin at FreeBSD.org
Thu May 1 13:57:24 UTC 2014
Author: dchagin
Date: Thu May 1 13:57:23 2014
New Revision: 265183
URL: http://svnweb.freebsd.org/changeset/base/265183
Log:
Add p_flag output to the DDB show proc command.
Modified:
user/dchagin/lemul/sys/ddb/db_ps.c
Modified: user/dchagin/lemul/sys/ddb/db_ps.c
==============================================================================
--- user/dchagin/lemul/sys/ddb/db_ps.c Thu May 1 13:56:13 2014 (r265182)
+++ user/dchagin/lemul/sys/ddb/db_ps.c Thu May 1 13:57:23 2014 (r265183)
@@ -392,17 +392,18 @@ DB_SHOW_COMMAND(proc, db_show_proc)
db_printf(" state: ");
switch (p->p_state) {
case PRS_NEW:
- db_printf("NEW\n");
+ db_printf("NEW");
break;
case PRS_NORMAL:
- db_printf("NORMAL\n");
+ db_printf("NORMAL");
break;
case PRS_ZOMBIE:
- db_printf("ZOMBIE\n");
+ db_printf("ZOMBIE");
break;
default:
- db_printf("??? (%#x)\n", p->p_state);
+ db_printf("??? (%#x)", p->p_state);
}
+ db_printf(" (p_flag 0x%x)\n", p->p_flag);
if (p->p_ucred != NULL) {
db_printf(" uid: %d gids: ", p->p_ucred->cr_uid);
for (i = 0; i < p->p_ucred->cr_ngroups; i++) {
More information about the svn-src-user
mailing list