tsan: explictly say when we fail to restore a stack trace
llvm-svn: 168423
This commit is contained in:
parent
3a3488e4e1
commit
aeed45cde0
|
|
@ -50,6 +50,10 @@ static void PrintHeader(ReportType typ) {
|
||||||
}
|
}
|
||||||
|
|
||||||
void PrintStack(const ReportStack *ent) {
|
void PrintStack(const ReportStack *ent) {
|
||||||
|
if (ent == 0) {
|
||||||
|
Printf(" [failed to restore the stack]\n");
|
||||||
|
return;
|
||||||
|
}
|
||||||
for (int i = 0; ent; ent = ent->next, i++) {
|
for (int i = 0; ent; ent = ent->next, i++) {
|
||||||
Printf(" #%d %s %s:%d", i, ent->func, ent->file, ent->line);
|
Printf(" #%d %s %s:%d", i, ent->func, ent->file, ent->line);
|
||||||
if (ent->col)
|
if (ent->col)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue