mirror of
https://github.com/opnsense/src.git
synced 2026-06-09 00:32:25 -04:00
Show the thread kernel stack base address for 'show threads'.
Discussed with: pho MFC after: 1 week
This commit is contained in:
parent
e878d99718
commit
38474ef299
1 changed files with 2 additions and 1 deletions
|
|
@ -94,7 +94,8 @@ db_show_threads(db_expr_t addr, boolean_t hasaddr, db_expr_t cnt, char *mod)
|
|||
|
||||
thr = kdb_thr_first();
|
||||
while (!db_pager_quit && thr != NULL) {
|
||||
db_printf(" %6ld (%p) ", (long)thr->td_tid, thr);
|
||||
db_printf(" %6ld (%p) (stack %p) ", (long)thr->td_tid, thr,
|
||||
(void *)thr->td_kstack);
|
||||
prev_jb = kdb_jmpbuf(jb);
|
||||
if (setjmp(jb) == 0) {
|
||||
if (db_trace_thread(thr, 1) != 0)
|
||||
|
|
|
|||
Loading…
Reference in a new issue