MCPcopy Create free account
hub / github.com/beefytech/Beef / FindSymbolAddr

Method FindSymbolAddr

IDEHelper/DebugTarget.cpp:451–466  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

449}
450
451addr_target DebugTarget::FindSymbolAddr(const StringImpl& name)
452{
453 //TODO: Search through all modules?
454
455 auto dbgModule = GetMainDbgModule();
456 if (dbgModule != NULL)
457 {
458 auto entry = dbgModule->mSymbolNameMap.Find(name.c_str());
459 if (entry!= NULL)
460 {
461 DbgSymbol* dwSymbol = entry->mValue;
462 return dwSymbol->mAddress;
463 }
464 }
465 return (addr_target)-1;
466}
467
468bool DebugTarget::GetValueByName(DbgSubprogram* subProgram, const StringImpl& name, WdStackFrame* stackFrame, intptr* outAddr, DbgType** outType, DbgAddrType* outAddrType)
469{

Callers 2

CreateCallMethod · 0.80
CheckNonDebuggerBreakMethod · 0.80

Calls 2

FindMethod · 0.45
c_strMethod · 0.45

Tested by

no test coverage detected