Search in sources :

Example 1 with TcpDebugger

use of com.google.security.zynamics.binnavi.debug.debugger.TcpDebugger in project binnavi by google.

the class CModuleConfiguration method updateDebugger.

/**
   * Takes a debugger template and updates the debugger object of the module accordingly if
   * possible.
   * 
   * @param template The debugger template that provides the debugger information.
   */
private void updateDebugger(final DebuggerTemplate template) {
    if ((m_debugger == null) || !m_debugger.isConnected()) {
        if (template == null) {
            m_debugger = null;
        } else {
            m_debugger = new TcpDebugger(template, new ModuleTargetSettings(m_module));
            m_debugger.setAddressTranslator(m_module, m_fileBase, m_imageBase);
        }
        for (final IModuleListener listener : m_listeners) {
            try {
                listener.changedDebugger(m_module, m_debugger);
            } catch (final Exception exception) {
                CUtilityFunctions.logException(exception);
            }
        }
    }
}
Also used : TcpDebugger(com.google.security.zynamics.binnavi.debug.debugger.TcpDebugger) ModuleTargetSettings(com.google.security.zynamics.binnavi.debug.debugger.ModuleTargetSettings) CouldntSaveDataException(com.google.security.zynamics.binnavi.Database.Exceptions.CouldntSaveDataException) CouldntLoadDataException(com.google.security.zynamics.binnavi.Database.Exceptions.CouldntLoadDataException)

Aggregations

CouldntLoadDataException (com.google.security.zynamics.binnavi.Database.Exceptions.CouldntLoadDataException)1 CouldntSaveDataException (com.google.security.zynamics.binnavi.Database.Exceptions.CouldntSaveDataException)1 ModuleTargetSettings (com.google.security.zynamics.binnavi.debug.debugger.ModuleTargetSettings)1 TcpDebugger (com.google.security.zynamics.binnavi.debug.debugger.TcpDebugger)1