blasted sym files just aren't always in address-order, must search entire sym file to find correct function for our offset.

svn path=/trunk/; revision=12270
This commit is contained in:
Royce Mitchell III 2004-12-21 04:32:11 +00:00
parent 73df8e0872
commit d56daebd24

View file

@ -84,7 +84,7 @@ KdbpStabFindEntry(IN PIMAGE_SYMBOL_INFO SymbolInfo,
for (; (ULONG_PTR)StabEntry < (ULONG_PTR)StabsEnd; StabEntry++) for (; (ULONG_PTR)StabEntry < (ULONG_PTR)StabsEnd; StabEntry++)
{ {
ULONG_PTR SymbolRelativeAddress; ULONG_PTR SymbolRelativeAddress;
if (StabEntry->n_type != Type) if (StabEntry->n_type != Type)
continue; continue;
@ -93,9 +93,6 @@ KdbpStabFindEntry(IN PIMAGE_SYMBOL_INFO SymbolInfo,
if (StabEntry->n_value >= SymbolInfo->ImageSize) if (StabEntry->n_value >= SymbolInfo->ImageSize)
continue; continue;
if (StabEntry->n_value > (ULONG_PTR)RelativeAddress )
break;
SymbolRelativeAddress = StabEntry->n_value; SymbolRelativeAddress = StabEntry->n_value;
if ((SymbolRelativeAddress <= (ULONG_PTR)RelativeAddress) && if ((SymbolRelativeAddress <= (ULONG_PTR)RelativeAddress) &&
(SymbolRelativeAddress > AddrFound)) (SymbolRelativeAddress > AddrFound))