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

Method GetValueByName

IDEHelper/DebugTarget.cpp:468–494  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

466}
467
468bool DebugTarget::GetValueByName(DbgSubprogram* subProgram, const StringImpl& name, WdStackFrame* stackFrame, intptr* outAddr, DbgType** outType, DbgAddrType* outAddrType)
469{
470 BP_ZONE("DebugTarget::GetValueByName");
471
472 //BF_ASSERT(*outAddrType == DbgAddrType_None);
473
474 String checkName = name;
475
476 if (subProgram != NULL)
477 {
478 subProgram->PopulateSubprogram();
479 if (GetValueByNameInBlock(subProgram, &subProgram->mBlock, checkName, stackFrame, outAddr, outType, outAddrType))
480 return true;
481 }
482
483 for (int dwarfIdx = mDbgModules.size() - 1; dwarfIdx >= 0; dwarfIdx--)
484 {
485 DbgModule* dwarf = mDbgModules[dwarfIdx];
486 for (auto compileUnit : dwarf->mCompileUnits)
487 {
488 if (GetValueByNameInBlock(NULL, compileUnit->mGlobalBlock, checkName, stackFrame, outAddr, outType, outAddrType))
489 return true;
490 }
491 }
492
493 return false;
494}
495
496static const uint64 kAutoStaticBucketPageSize = 1024ull;
497

Callers 4

GetThisMethod · 0.80
CastMethod · 0.80
DoLookupIdentifierMethod · 0.80
LookupSplatMemberMethod · 0.80

Calls 2

PopulateSubprogramMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected