mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
When printing information on the current thread, such as when entering
DDB, also print the pid of the process if present. Since much debugging still centers around processes, having the pid is quite helpful.
This commit is contained in:
parent
0c4cafead9
commit
2afce774e7
1 changed files with 6 additions and 1 deletions
|
|
@ -41,7 +41,12 @@ __FBSDID("$FreeBSD$");
|
|||
void
|
||||
db_print_thread(void)
|
||||
{
|
||||
db_printf("[thread %ld]\n", (long)kdb_thread->td_tid);
|
||||
pid_t pid;
|
||||
|
||||
pid = -1;
|
||||
if (kdb_thread->td_proc != NULL)
|
||||
pid = kdb_thread->td_proc->p_pid;
|
||||
db_printf("[thread pid %d tid %ld ]\n", pid, (long)kdb_thread->td_tid);
|
||||
}
|
||||
|
||||
void
|
||||
|
|
|
|||
Loading…
Reference in a new issue