1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-29 19:45:01 +02:00

Fix deadlock when clearing all breakpoints.

This commit is contained in:
Ken Ryall 2007-08-21 01:42:02 +00:00
parent e2c0f62d7d
commit 8f61e02fd9

View file

@ -444,9 +444,11 @@ public class CBreakpointManager implements IBreakpointsListener, IBreakpointMana
ICBreakpoint breakpoint = null;
synchronized( getBreakpointMap() ) {
breakpoint = getBreakpointMap().getCBreakpoint( cdiBreakpoint );
if ( breakpoint == null ) {
breakpoint = createLocationBreakpoint( cdiBreakpoint );
}
}
if ( breakpoint == null ) {
breakpoint = createLocationBreakpoint( cdiBreakpoint );
}
synchronized( getBreakpointMap() ) {
if ( breakpoint != null )
getBreakpointMap().put( breakpoint, cdiBreakpoint );
}