Class OldFunctionManager
java.lang.Object
ghidra.program.database.oldfunction.OldFunctionManager
- All Implemented Interfaces:
ErrorHandler
This class only exists to support upgrading Ghidra Version 2.1 and earlier.
NOTE: Programmers should not use this class!
NOTE: Programmers should not use this class!
-
Constructor Summary
ConstructorDescriptionOldFunctionManager
(DBHandle dbHandle, ErrorHandler errHandler, AddressMap addrMap) Constructs a new OldFunctionManager. -
Method Summary
Modifier and TypeMethodDescriptionvoid
Notification that an IO exception occurred.void
dispose()
Permanently discards all data resources associated with the old function manager.void
upgrade
(ProgramDB upgradeProgram, TaskMonitor monitor) Actually does the work of upgrading the old program function manager.
-
Constructor Details
-
OldFunctionManager
public OldFunctionManager(DBHandle dbHandle, ErrorHandler errHandler, AddressMap addrMap) throws VersionException Constructs a new OldFunctionManager.- Parameters:
dbHandle
- data base handleerrHandler
- the error handleraddrMap
- the address map- Throws:
VersionException
- if function manager's version does not match its expected version
-
-
Method Details
-
upgrade
public void upgrade(ProgramDB upgradeProgram, TaskMonitor monitor) throws CancelledException, IOException Actually does the work of upgrading the old program function manager.- Parameters:
upgradeProgram
- the program to upgrademonitor
- the task monitor to allow the user to cancel the upgrade- Throws:
CancelledException
- if the user cancels the upgradeIOException
- if an i/o error occurs
-
dbError
Description copied from interface:ErrorHandler
Notification that an IO exception occurred.- Specified by:
dbError
in interfaceErrorHandler
- Parameters:
e
-IOException
which was cause of error- See Also:
-
dispose
Permanently discards all data resources associated with the old function manager. This should be invoked when an upgrade of all function data has been completed.- Throws:
IOException
-