eclair: report PID for all threads

This commit is contained in:
Balazs Gerofi
2017-01-08 11:45:41 +09:00
parent 25f67c9ef8
commit 7a0c204dc1

View File

@ -849,6 +849,7 @@ static void command(char *cmd, char *res) {
break;
}
q = buf;
q += sprintf(q, "PID %d, ", ti->pid);
if (ti->status & PS_RUNNING) {
q += sprintf(q, "%srunning on cpu %d",
ti->idle ? "idle " : "", ti->lcpu);
@ -877,9 +878,6 @@ static void command(char *cmd, char *res) {
else {
q += sprintf(q, "status=%#x", ti->status);
}
if (ti->tid != ti->pid) {
q += sprintf(q, ",pid=%d", ti->pid);
}
rbp += print_hex(rbp, buf);
}
} while (0);