Debugger: Ignore func imports in ppmap files.

This commit is contained in:
Unknown W. Brackets 2023-09-30 15:25:48 -07:00
parent aedd51f2f6
commit 9844422fc8

View File

@ -181,6 +181,14 @@ bool SymbolMap::LoadSymbolMap(const Path &filename) {
if (type == ST_DATA && size == 0)
size = 4;
// Ignore syscalls, will be recognized from stubs.
// Note: it's still useful to save these for grepping and importing into other tools.
if (strncmp(name, "zz_sce", 6) == 0)
continue;
// Also ignore unresolved imports, which will similarly be replaced.
if (strncmp(name, "zz_[UNK", 7) == 0)
continue;
if (!strcmp(name, ".text") || !strcmp(name, ".init") || strlen(name) <= 1) {
} else {