Signed-off-by: Colin McCabe <colinm@hq.newdream.net>
BackTrace *bt = new BackTrace(1);
_dout_lock.Lock();
- *_dout << file << ": In function '" << func << "':" << std::endl;
+ *_dout << file << ": In function '" << func << "', "
+ << "In thread " << pthread_self() << std::endl;
*_dout << file << ":" << line << ": FAILED assert(" << assertion << ")" << std::endl;
bt->print(*_dout);
*_dout << " NOTE: a copy of the executable, or `objdump -rdS <executable>` is needed to interpret this." << std::endl;
{
*_dout << "*** Caught signal (" << sys_siglist[signum] << ") ***"
<< std::endl;
+ *_dout << "in thread " << pthread_self() << std::endl;
BackTrace bt(0);
bt.print(*_dout);
_dout->flush();