| 466 | } |
| 467 | |
| 468 | bool 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 | |
| 496 | static const uint64 kAutoStaticBucketPageSize = 1024ull; |
| 497 |
no test coverage detected