mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 01:55:19 +00:00
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:
parent
73df8e0872
commit
d56daebd24
1 changed files with 1 additions and 4 deletions
|
@ -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))
|
||||||
|
|
Loading…
Reference in a new issue