add pthread_self() to panic output

This should help locating the panicking thread in a core dump when when
the principle thread as determined by the debugger is a different one.
parent 9427a610
......@@ -783,6 +783,8 @@ pan_ic(const char *func, const char *file, int line, const char *cond,
if (err)
VSB_printf(pan_vsb, "errno = %d (%s)\n", err, vstrerror(err));
VSB_printf(pan_vsb, "pthread.self = %p\n", (void *)pthread_self());
q = THR_GetName();
if (q != NULL)
VSB_printf(pan_vsb, "pthread.name = (%s)\n", q);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment