Skip to content

Commit

Permalink
Merge pull request #18277 from unknownbrackets/symbolmap-skip-zz
Browse files Browse the repository at this point in the history
Debugger: Ignore func imports in ppmap files
  • Loading branch information
hrydgard committed Oct 1, 2023
2 parents 86f3c1c + 9844422 commit 9389456
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions Core/Debugger/SymbolMap.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 9389456

Please sign in to comment.