public Object getValueAt(int rowIndex, int columnIndex) { final Breakpoint bp = breakPoints.get(rowIndex); switch (columnIndex) { case COL_BP_ENABLED: return bp.isEnabled(); case COL_BP_ADDRESS: return Misc.toHexString(bp.getAddress()); case COL_BP_EXPRESSION: return bp.hasCondition() ? bp.getCondition() : UNCONDITIONAL_BREAKPOINT; default: return "<unknown column>"; } }
private String createLinePrefix(Address pc, Address realAddress, DisassembledLine line) { /* * The prefix may contain a flag indicating that * a breakpoint is present on this line as well * as a caret for the current program counter (PC) position. * * Example: * * [B] >> 0000: SET a,1 */ final Breakpoint breakpoint = emulator.getBreakPoint(realAddress); String prefix1 = breakpoint != null ? breakpoint.isEnabled() ? "[B] " : "[_] " : " "; String prefix2 = realAddress.equals(pc) ? ">> " : " "; return prefix1 + prefix2; }