summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Leonard <d@cvs.openbsd.org>1998-12-21 07:44:06 +0000
committerDavid Leonard <d@cvs.openbsd.org>1998-12-21 07:44:06 +0000
commit9376fbf9ff76484a62daa8c832b035ca99980c16 (patch)
treee41981695bccd086445ca8d1813770186c3a921e
parentf04b5fd1f20451e24f0bda9e224f47f46a3a55b1 (diff)
dump thread info on PANIC
-rw-r--r--lib/libc_r/uthread/uthread_exit.c3
-rw-r--r--lib/libpthread/uthread/uthread_exit.c3
2 files changed, 6 insertions, 0 deletions
diff --git a/lib/libc_r/uthread/uthread_exit.c b/lib/libc_r/uthread/uthread_exit.c
index 432a9435ca7..cedb60d2bca 100644
--- a/lib/libc_r/uthread/uthread_exit.c
+++ b/lib/libc_r/uthread/uthread_exit.c
@@ -122,6 +122,9 @@ _thread_exit(const char *fname, int lineno, const char *string)
/* Write the string to the standard error file descriptor: */
_thread_sys_write(2, s, strlen(s));
+ /* Write a dump of the current thread status: */
+ _thread_dump_info();
+
/* Force this process to exit: */
_exit(1);
}
diff --git a/lib/libpthread/uthread/uthread_exit.c b/lib/libpthread/uthread/uthread_exit.c
index 432a9435ca7..cedb60d2bca 100644
--- a/lib/libpthread/uthread/uthread_exit.c
+++ b/lib/libpthread/uthread/uthread_exit.c
@@ -122,6 +122,9 @@ _thread_exit(const char *fname, int lineno, const char *string)
/* Write the string to the standard error file descriptor: */
_thread_sys_write(2, s, strlen(s));
+ /* Write a dump of the current thread status: */
+ _thread_dump_info();
+
/* Force this process to exit: */
_exit(1);
}