зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1206766 - Show meaningful module offsets in stack traces even when no symbol found. r=spohl
This commit is contained in:
Родитель
ff0f1ae867
Коммит
1273371c40
|
@ -240,6 +240,9 @@ nsCocoaDebugUtils::GetAddressStringInt(void* aAddress, CSTypeRef aOwner)
|
||||||
addressName = CSSymbolGetName(symbol);
|
addressName = CSSymbolGetName(symbol);
|
||||||
CSRange range = CSSymbolGetRange(symbol);
|
CSRange range = CSSymbolGetRange(symbol);
|
||||||
addressOffset = (unsigned long long) aAddress - range.location;
|
addressOffset = (unsigned long long) aAddress - range.location;
|
||||||
|
} else {
|
||||||
|
addressOffset = (unsigned long long)
|
||||||
|
aAddress - CSSymbolOwnerGetBaseAddress(owner);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Загрузка…
Ссылка в новой задаче