MCPcopy Create free account
hub / github.com/PCSX2/pcsx2 / LoadAndAnalyseElf

Method LoadAndAnalyseElf

pcsx2/DebugTools/SymbolImporter.cpp:164–181  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

162}
163
164void 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
183struct SymbolImporterThreadParameters
184{

Callers 1

analyseMethod · 0.80

Calls 5

cdvdLoadElfFunction · 0.85
GetDescriptionMethod · 0.80
formatFunction · 0.50
emptyMethod · 0.45
ErrorMethod · 0.45

Tested by

no test coverage detected