forked from OSchip/llvm-project
[MSan] symbolize correct PC when printing Summary message
llvm-svn: 174956
This commit is contained in:
parent
59dce37a82
commit
93686fc6f1
|
@ -71,7 +71,8 @@ static void DescribeOrigin(u32 origin) {
|
||||||
static void ReportSummary(const char *error_type, StackTrace *stack) {
|
static void ReportSummary(const char *error_type, StackTrace *stack) {
|
||||||
if (!stack->size || !IsSymbolizerAvailable()) return;
|
if (!stack->size || !IsSymbolizerAvailable()) return;
|
||||||
AddressInfo ai;
|
AddressInfo ai;
|
||||||
SymbolizeCode(stack->trace[0], &ai, 1);
|
uptr pc = StackTrace::GetPreviousInstructionPc(stack->trace[0]);
|
||||||
|
SymbolizeCode(pc, &ai, 1);
|
||||||
ReportErrorSummary(error_type,
|
ReportErrorSummary(error_type,
|
||||||
StripPathPrefix(ai.file, flags()->strip_path_prefix),
|
StripPathPrefix(ai.file, flags()->strip_path_prefix),
|
||||||
ai.line, ai.function);
|
ai.line, ai.function);
|
||||||
|
|
Loading…
Reference in New Issue