summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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);
}