Adjusted the search function to find the symbol associated with an

address when EIP address resolving is enabled.
This commit is contained in:
Joey Schulze 2007-06-18 07:50:55 +00:00
parent fce0c596cd
commit 1aa1cfdb64

View File

@ -516,7 +516,9 @@ extern char * LookupModuleSymbol(value, sym)
if ( mp->sym_array[nsym].value > value )
{
if ( sym->size == 0 ||
(mp->sym_array[nsym].value-last->value) < sym->size )
(value - last->value) < sym->offset ||
( (sym->offset == (value - last->value)) &&
(mp->sym_array[nsym].value-last->value) < sym->size ) )
{
sym->offset = value - last->value;
sym->size = mp->sym_array[nsym].value - \