| 449 | } |
| 450 | |
| 451 | addr_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 | |
| 468 | bool DebugTarget::GetValueByName(DbgSubprogram* subProgram, const StringImpl& name, WdStackFrame* stackFrame, intptr* outAddr, DbgType** outType, DbgAddrType* outAddrType) |
| 469 | { |
no test coverage detected