1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-08-01 13:25:45 +02:00

Target filtering fixes for watchpoints.

This commit is contained in:
Mikhail Khodjaiants 2004-09-27 18:36:43 +00:00
parent 1943c247b2
commit fb2699f85e
2 changed files with 12 additions and 3 deletions

View file

@ -1,3 +1,7 @@
2004-09-27 Mikhail Khodjaiants
Target filtering fixes for watchpoints.
* CBreakpointManager.java
2004-09-21 Mikhail Khodjaiants 2004-09-21 Mikhail Khodjaiants
Fixed the problems with the Disassembly view and address breakpoints caused by switch to IAddress. Fixed the problems with the Disassembly view and address breakpoints caused by switch to IAddress.
* CBreakpointManager.java * CBreakpointManager.java

View file

@ -363,10 +363,10 @@ public class CBreakpointManager implements IBreakpointManagerListener, ICDIEvent
} }
private void handleBreakpointCreatedEvent( final ICDIBreakpoint cdiBreakpoint ) { private void handleBreakpointCreatedEvent( final ICDIBreakpoint cdiBreakpoint ) {
if ( cdiBreakpoint instanceof ICDILocationBreakpoint ) if ( cdiBreakpoint instanceof ICDIWatchpoint )
doHandleLocationBreakpointCreatedEvent( (ICDILocationBreakpoint)cdiBreakpoint );
else if ( cdiBreakpoint instanceof ICDIWatchpoint )
doHandleWatchpointCreatedEvent( (ICDIWatchpoint)cdiBreakpoint ); doHandleWatchpointCreatedEvent( (ICDIWatchpoint)cdiBreakpoint );
else if ( cdiBreakpoint instanceof ICDILocationBreakpoint )
doHandleLocationBreakpointCreatedEvent( (ICDILocationBreakpoint)cdiBreakpoint );
if ( !cdiBreakpoint.isTemporary() && !DebugPlugin.getDefault().getBreakpointManager().isEnabled() ) { if ( !cdiBreakpoint.isTemporary() && !DebugPlugin.getDefault().getBreakpointManager().isEnabled() ) {
try { try {
cdiBreakpoint.setEnabled( false ); cdiBreakpoint.setEnabled( false );
@ -406,6 +406,11 @@ public class CBreakpointManager implements IBreakpointManagerListener, ICDIEvent
} }
} }
if ( breakpoint != null ) { if ( breakpoint != null ) {
try {
breakpoint.setTargetFilter( getDebugTarget() );
}
catch( CoreException e ) {
}
getBreakpointNotifier().breakpointInstalled( getDebugTarget(), breakpoint ); getBreakpointNotifier().breakpointInstalled( getDebugTarget(), breakpoint );
} }
} }