Don't try to load non-.sym files as ARMIPS symbols

This commit is contained in:
Adam Higerd 2024-07-12 19:15:45 -05:00 committed by Vicki Pfau
parent 67b0a27d88
commit 7d8b029282
1 changed files with 6 additions and 5 deletions

View File

@ -1130,8 +1130,12 @@ static void _GBACoreLoadSymbols(struct mCore* core, struct VFile* vf) {
}
#endif
if (!vf && core->dirs.base) {
closeAfter = true;
vf = mDirectorySetOpenSuffix(&core->dirs, core->dirs.base, ".sym", O_RDONLY);
if (vf) {
mDebuggerLoadARMIPSSymbols(core->symbolTable, vf);
vf->close(vf);
return;
}
}
#endif
if (!vf && gba->mbVf) {
@ -1156,11 +1160,8 @@ static void _GBACoreLoadSymbols(struct mCore* core, struct VFile* vf) {
mCoreLoadELFSymbols(core->symbolTable, elf);
#endif
ELFClose(elf);
} else
#endif
{
mDebuggerLoadARMIPSSymbols(core->symbolTable, vf);
}
#endif
if (closeAfter) {
vf->close(vf);
} else {