mirror of https://github.com/mgba-emu/mgba.git
Don't try to load non-.sym files as ARMIPS symbols
This commit is contained in:
parent
9b598d2fe4
commit
d1ab52112a
|
@ -1260,8 +1260,12 @@ static void _GBACoreLoadSymbols(struct mCore* core, struct VFile* vf) {
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
if (!vf && core->dirs.base) {
|
if (!vf && core->dirs.base) {
|
||||||
closeAfter = true;
|
|
||||||
vf = mDirectorySetOpenSuffix(&core->dirs, core->dirs.base, ".sym", O_RDONLY);
|
vf = mDirectorySetOpenSuffix(&core->dirs, core->dirs.base, ".sym", O_RDONLY);
|
||||||
|
if (vf) {
|
||||||
|
mDebuggerLoadARMIPSSymbols(core->symbolTable, vf);
|
||||||
|
vf->close(vf);
|
||||||
|
}
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
if (!vf && gba->mbVf) {
|
if (!vf && gba->mbVf) {
|
||||||
|
@ -1286,11 +1290,8 @@ static void _GBACoreLoadSymbols(struct mCore* core, struct VFile* vf) {
|
||||||
mCoreLoadELFSymbols(core->symbolTable, elf);
|
mCoreLoadELFSymbols(core->symbolTable, elf);
|
||||||
#endif
|
#endif
|
||||||
ELFClose(elf);
|
ELFClose(elf);
|
||||||
} else
|
|
||||||
#endif
|
|
||||||
{
|
|
||||||
mDebuggerLoadARMIPSSymbols(core->symbolTable, vf);
|
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
if (closeAfter) {
|
if (closeAfter) {
|
||||||
vf->close(vf);
|
vf->close(vf);
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue