GP-7111: MachoLoader library fix, and calling updateRecord() in

MemorySymbol.setLibrary()
This commit is contained in:
Ryan Kurtz committed 2026-11-03 13:43:05 -05:00
1 parent 8ffdaf2e61
commit 4cfb27ded8
2 files changed
+2 -6

No files matched your search

@@ -1840,12 +1840,7 @@ public class MachoProgramBuilder {
ExternalLocation loc =
extManager.getUniqueExternalLocation(Library.UNKNOWN, symbol);
if (loc != null) {
try {
loc.setName(null, symbol, SourceType.IMPORTED);
}
catch (InvalidInputException e) {
throw new Exception(e.getMessage());
}
loc.setLibrary(library);
}
}
}
@@ -383,6 +383,7 @@ public abstract class MemorySymbol extends SymbolDB {
}
checkDeleted();
record.setLongValue(SymbolDatabaseAdapter.SYMBOL_LIBRARY_ID_COL, newLibrary.getID());
updateRecord();
ProgramDB program = symbolMgr.getProgram();
program.symbolChanged(this, ProgramEvent.SYMBOL_LIBRARY_CHANGED, getAddress(), this,
oldLibrary, newLibrary);