1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-06-09 10:46:02 +02:00

Fix for bug 58711: Breakpoint race condition.

Notify the Breakpoint Manager when the install count of breakpoint is changed.
This commit is contained in:
Mikhail Khodjaiants 2004-04-24 03:30:51 +00:00
parent 671d4db3fb
commit b87154d43c
2 changed files with 8 additions and 1 deletions

View file

@ -1,3 +1,8 @@
2004-04-23 Mikhail Khodjaiants
Fix for bug 58711: Breakpoint race condition.
Notify the Breakpoint Manager when the install count of breakpoint is changed.
* CBreakpointUpdater.java
2004-04-21 Mikhail Khodjaiants
Implementing the Disassembly view.
New annotation model is added to show breakpoint markers.

View file

@ -15,6 +15,7 @@ import org.eclipse.cdt.debug.core.ICBreakpointListener;
import org.eclipse.cdt.debug.core.model.ICBreakpoint;
import org.eclipse.cdt.debug.ui.CDebugUIPlugin;
import org.eclipse.core.runtime.CoreException;
import org.eclipse.debug.core.DebugPlugin;
import org.eclipse.debug.core.model.IBreakpoint;
import org.eclipse.debug.core.model.IDebugTarget;
import org.eclipse.debug.internal.ui.DebugUIPlugin;
@ -55,7 +56,8 @@ public class CBreakpointUpdater implements ICBreakpointListener {
public void run() {
try {
((ICBreakpoint)breakpoint).incrementInstallCount();
if ( ((ICBreakpoint)breakpoint).incrementInstallCount() == 1 )
DebugPlugin.getDefault().getBreakpointManager().fireBreakpointChanged( breakpoint );
}
catch( CoreException e ) {
CDebugUIPlugin.log( e.getStatus() );