Do include offset information for internal symbols (not just DLLs). They're helpful

for narrowing down exactly where we are in a function.
This commit is contained in:
Glenn Maynard
2006-03-29 04:48:39 +00:00
parent cec466b584
commit 84f87db44d
@@ -344,9 +344,13 @@ namespace SymbolLookup
VirtualQueryEx( g_hParent, ptr, &meminfo, sizeof meminfo );
char tmp[512];
if( VDDebugInfo::VDDebugInfoLookupRVA(pctx, (unsigned int)ptr, tmp, sizeof(tmp)) >= 0 )
long iAddress = VDDebugInfo::VDDebugInfoLookupRVA(pctx, (unsigned int)ptr, tmp, sizeof(tmp));
if( iAddress >= 0 )
{
wsprintf( buf, "%08x: %s", ptr, Demangle(tmp) );
wsprintf( buf, "%08x: %s [%08lx+%lx+%lx]", ptr, Demangle(tmp),
pctx->nFirstRVA,
((unsigned int) ptr) - pctx->nFirstRVA - iAddress,
iAddress );
return;
}