Class 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!
    • 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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • OldFunctionManager

        public OldFunctionManager​(DBHandle dbHandle,
                                  ErrorHandler errHandler,
                                  AddressMap addrMap)
                           throws VersionException
        Constructs a new OldFunctionManager.
        Parameters:
        dbHandle - data base handle
        errHandler - the error handler
        addrMap - 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 upgrade
        monitor - the task monitor to allow the user to cancel the upgrade
        Throws:
        CancelledException - if the user cancels the upgrade
        java.io.IOException - if an i/o error occurs
      • 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