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);
}
}
}
}
Aggregations