Class OldFunctionManager
- java.lang.Object
-
- ghidra.program.database.oldfunction.OldFunctionManager
-
- All Implemented Interfaces:
ErrorHandler
public class OldFunctionManager extends java.lang.Object implements ErrorHandler
This class only exists to support upgrading Ghidra Version 2.1 and earlier.
NOTE: Programmers should not use this class!
-
-
Constructor Summary
Constructors Constructor Description OldFunctionManager(DBHandle dbHandle, ErrorHandler errHandler, AddressMap addrMap)
Constructs a new OldFunctionManager.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
dbError(java.io.IOException e)
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 Detail
-
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 Detail
-
upgrade
public void upgrade(ProgramDB upgradeProgram, TaskMonitor monitor) throws CancelledException, java.io.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 upgradejava.io.IOException
- if an i/o error occurs
-
dbError
public void dbError(java.io.IOException e)
Description copied from interface:ErrorHandler
Notification that an IO exception occurred.- Specified by:
dbError
in interfaceErrorHandler
- See Also:
ErrorHandler.dbError(java.io.IOException)
-
dispose
public void dispose() throws java.io.IOException
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:
java.io.IOException
-
-