diff options
author | marcel <marcel@FreeBSD.org> | 2007-10-16 17:52:59 +0000 |
---|---|---|
committer | marcel <marcel@FreeBSD.org> | 2007-10-16 17:52:59 +0000 |
commit | 08810f3770facbd02ce50662a55f97d63405b727 (patch) | |
tree | d8d3d9966db9229481bc27394cf4f98364eee8cc /sys/ddb | |
parent | ca7dd6ed00d7b8c0203672071f42019bf8f2e91c (diff) | |
download | FreeBSD-src-08810f3770facbd02ce50662a55f97d63405b727.zip FreeBSD-src-08810f3770facbd02ce50662a55f97d63405b727.tar.gz |
Print the stack bounds of the thread.
Diffstat (limited to 'sys/ddb')
-rw-r--r-- | sys/ddb/db_ps.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/ddb/db_ps.c b/sys/ddb/db_ps.c index 9efd871..5d5e068 100644 --- a/sys/ddb/db_ps.c +++ b/sys/ddb/db_ps.c @@ -295,6 +295,8 @@ DB_SHOW_COMMAND(thread, db_show_thread) db_printf(" proc (pid %d): %p\n", td->td_proc->p_pid, td->td_proc); if (td->td_name[0] != '\0') db_printf(" name: %s\n", td->td_name); + db_printf(" stack: %p-%p\n", (void *)td->td_kstack, + (void *)(td->td_kstack + td->td_kstack_pages * PAGE_SIZE - 1)); db_printf(" flags: %#x ", td->td_flags); db_printf(" pflags: %#x\n", td->td_pflags); db_printf(" state: "); |