public SymbolsForBinary(string aHostFileName) : base(aHostFileName) { // Add default unknown entry SymbolSymbol nullEntry = SymbolSymbol.NewUnknown(this); iEntries.Add(nullEntry); }
public override GenericSymbol SymbolForAddress(long aAddress) { #if DEBUG int x = 0; if (x > 0) { base.Dump(aAddress); } #endif GenericSymbol ret = null; // AddressFindingComparer comparer = new AddressFindingComparer(); SymbolSymbol temp = SymbolSymbol.NewUnknown((uint)aAddress, 0, string.Empty); int pos = iEntries.BinarySearch(temp, comparer); if (pos >= 0 && pos < iEntries.Count) { ret = iEntries[pos]; System.Diagnostics.Debug.Assert(ret.AddressRange.Contains(aAddress)); } // return(ret); }