mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2026-11-04 13:28:35 +00:00
GP-7111: MachoLoader library fix, and calling updateRecord() in
MemorySymbol.setLibrary()
This commit is contained in:
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);
|
||||
}
|
||||
}
|
||||
}
|
||||
+1
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user