|
From: Markus B. <mba...@us...> - 2005-10-03 06:45:06
|
Update of /cvsroot/rubyeclipse/org.rubypeople.rdt.debug.core/src/org/rubypeople/rdt/internal/debug/core/model In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv13778/src/org/rubypeople/rdt/internal/debug/core/model Modified Files: Tag: SRB_0-6-1 RubyDebugTarget.java Log Message: added update handler for breakpoints; handles enable/disable and line shifting after editing a file Index: RubyDebugTarget.java =================================================================== RCS file: /cvsroot/rubyeclipse/org.rubypeople.rdt.debug.core/src/org/rubypeople/rdt/internal/debug/core/model/RubyDebugTarget.java,v retrieving revision 1.9 retrieving revision 1.9.2.1 diff -C2 -d -r1.9 -r1.9.2.1 *** RubyDebugTarget.java 29 Aug 2005 16:05:48 -0000 1.9 --- RubyDebugTarget.java 3 Oct 2005 06:44:57 -0000 1.9.2.1 *************** *** 174,179 **** public void breakpointChanged(IBreakpoint breakpoint, IMarkerDelta arg1) { // is called e.g. after a line has been inserted before a breakpoint ! // but then the debugger is out of sync with the file anyway, so debugging ! // should be stopped here. } --- 174,184 ---- public void breakpointChanged(IBreakpoint breakpoint, IMarkerDelta arg1) { // is called e.g. after a line has been inserted before a breakpoint ! // or the enablement status has changed ! // in the first case it is essential that the debugger has reloaded the file ! // so that the breakpoint moving is in synch with the new file ! if (isTerminated) { ! return ; ! } ! this.getRubyDebuggerProxy().updateBreakpoint(breakpoint, arg1) ; } |