use of com.google.security.zynamics.binnavi.debug.models.breakpoints.BreakpointManager in project binnavi by google.
the class CBreakpointTableModel method getRelocatedBreakpointAddress.
/**
* Determines the relocated address of the breakpoint.
*
* @param row The row where the relocated breakpoint is shown.
*
* @return the relocated address of the breakpoint
*/
private IAddress getRelocatedBreakpointAddress(final int row) {
final Pair<IDebugger, Integer> breakpoint = CBreakpointTableHelpers.findBreakpoint(m_debuggerProvider, row);
final BreakpointManager manager = breakpoint.first().getBreakpointManager();
final int breakpointIndex = breakpoint.second();
return breakpoint.first().fileToMemory((manager.getBreakpoint(BreakpointType.REGULAR, breakpointIndex).getAddress()).getModule(), manager.getBreakpoint(BreakpointType.REGULAR, breakpointIndex).getAddress().getAddress()).getAddress();
}
use of com.google.security.zynamics.binnavi.debug.models.breakpoints.BreakpointManager in project binnavi by google.
the class CBreakpointTableModel method setValueAt.
@Override
public void setValueAt(final Object value, final int row, final int col) {
final Pair<IDebugger, Integer> breakpoint = CBreakpointTableHelpers.findBreakpoint(m_debuggerProvider, row);
final BreakpointManager manager = breakpoint.first().getBreakpointManager();
final int breakpointIndex = breakpoint.second();
switch(col) {
case COLUMN_CONDITION:
updateCondition(manager, breakpointIndex, value.toString());
break;
case COLUMN_DESCRIPTION:
manager.getBreakpoint(BreakpointType.REGULAR, breakpointIndex).setDescription(value.toString());
break;
}
fireTableCellUpdated(row, col);
}
use of com.google.security.zynamics.binnavi.debug.models.breakpoints.BreakpointManager in project binnavi by google.
the class CBreakpointTable method removeDebuggerListeners.
/**
* Removes all listeners from a debugger.
*
* @param debugger The debugger.
*/
private void removeDebuggerListeners(final IDebugger debugger) {
final BreakpointManager manager = debugger.getBreakpointManager();
manager.removeListener(m_breakpointManagerListener);
}
use of com.google.security.zynamics.binnavi.debug.models.breakpoints.BreakpointManager in project binnavi by google.
the class CBreakpointTable method addDebuggerListeners.
/**
* Initializes all listeners for a debugger.
*
* @param debugger The new debugger.
*/
private void addDebuggerListeners(final IDebugger debugger) {
final BreakpointManager manager = debugger.getBreakpointManager();
manager.addListener(m_breakpointManagerListener);
}
use of com.google.security.zynamics.binnavi.debug.models.breakpoints.BreakpointManager in project binnavi by google.
the class CBreakpointTableModel method getBreakpointModuleName.
/**
* Determines the name of the module where the breakpoint resides.
*
* @param row The row where the breakpoint is shown.
*
* @return The name of the module where the breakpoint resides.
*/
private String getBreakpointModuleName(final int row) {
final Pair<IDebugger, Integer> breakpoint = CBreakpointTableHelpers.findBreakpoint(m_debuggerProvider, row);
final BreakpointManager manager = breakpoint.first().getBreakpointManager();
final int breakpointIndex = breakpoint.second();
return (manager.getBreakpoint(BreakpointType.REGULAR, breakpointIndex).getAddress()).getModule().getConfiguration().getName();
}
Aggregations