| 162 | } |
| 163 | |
| 164 | void SymbolImporter::LoadAndAnalyseElf(Pcsx2Config::DebugAnalysisOptions options) |
| 165 | { |
| 166 | if (!VMManager::HasValidVM()) |
| 167 | return; |
| 168 | |
| 169 | const std::string& elf_path = VMManager::GetCurrentELF(); |
| 170 | |
| 171 | Error error; |
| 172 | ElfObject elfo; |
| 173 | if (elf_path.empty() || !cdvdLoadElf(&elfo, elf_path, false, &error)) |
| 174 | { |
| 175 | if (!elf_path.empty()) |
| 176 | Console.Error(fmt::format("Failed to read ELF for symbol import: {}: {}", elf_path, error.GetDescription())); |
| 177 | return; |
| 178 | } |
| 179 | |
| 180 | AnalyseElf(elfo.ReleaseData(), elf_path, options, false); |
| 181 | } |
| 182 | |
| 183 | struct SymbolImporterThreadParameters |
| 184 | { |
no test coverage detected