Commit 1273371c authored by Steven Michaud's avatar Steven Michaud
Browse files

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

parent ff0f1ae8
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -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);
    }
  }