Bug 1206766 - Show meaningful module offsets in stack traces even when no symbol found. r=spohl

This commit is contained in:
Steven Michaud 2015-09-21 14:20:35 -05:00
parent ff0f1ae867
commit 1273371c40

View file

@ -240,6 +240,9 @@ nsCocoaDebugUtils::GetAddressStringInt(void* aAddress, CSTypeRef aOwner)
addressName = CSSymbolGetName(symbol);
CSRange range = CSSymbolGetRange(symbol);
addressOffset = (unsigned long long) aAddress - range.location;
} else {
addressOffset = (unsigned long long)
aAddress - CSSymbolOwnerGetBaseAddress(owner);
}
}