| 828 | |
| 829 | |
| 830 | std::vector<DebugModule> LldbAdapter::GetModuleList() |
| 831 | { |
| 832 | std::vector<DebugModule> result; |
| 833 | size_t numModules = m_target.GetNumModules(); |
| 834 | for (size_t i = 0; i < numModules; i++) |
| 835 | { |
| 836 | SBModule module = m_target.GetModuleAtIndex(i); |
| 837 | if (!module.IsValid()) |
| 838 | continue; |
| 839 | |
| 840 | DebugModule m; |
| 841 | SBFileSpec fileSpec = module.GetFileSpec(); |
| 842 | char path[1024]; |
| 843 | size_t len = fileSpec.GetPath(path, 1024); |
| 844 | m.m_name = std::string(path, len); |
| 845 | m.m_short_name = fileSpec.GetFilename(); |
| 846 | SBAddress headerAddress = module.GetObjectFileHeaderAddress(); |
| 847 | m.m_address = headerAddress.GetLoadAddress(m_target); |
| 848 | m.m_size = GetModuleHighestAddress(module, m_target) - m.m_address; |
| 849 | m.m_loaded = true; |
| 850 | result.push_back(m); |
| 851 | } |
| 852 | return result; |
| 853 | } |
| 854 | |
| 855 | |
| 856 | std::string LldbAdapter::GetTargetArchitecture() |
no test coverage detected