mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-23 17:05:26 +02:00
Target filtering fixes for watchpoints.
This commit is contained in:
parent
1943c247b2
commit
fb2699f85e
2 changed files with 12 additions and 3 deletions
|
@ -1,3 +1,7 @@
|
|||
2004-09-27 Mikhail Khodjaiants
|
||||
Target filtering fixes for watchpoints.
|
||||
* CBreakpointManager.java
|
||||
|
||||
2004-09-21 Mikhail Khodjaiants
|
||||
Fixed the problems with the Disassembly view and address breakpoints caused by switch to IAddress.
|
||||
* CBreakpointManager.java
|
||||
|
|
|
@ -363,10 +363,10 @@ public class CBreakpointManager implements IBreakpointManagerListener, ICDIEvent
|
|||
}
|
||||
|
||||
private void handleBreakpointCreatedEvent( final ICDIBreakpoint cdiBreakpoint ) {
|
||||
if ( cdiBreakpoint instanceof ICDILocationBreakpoint )
|
||||
doHandleLocationBreakpointCreatedEvent( (ICDILocationBreakpoint)cdiBreakpoint );
|
||||
else if ( cdiBreakpoint instanceof ICDIWatchpoint )
|
||||
if ( cdiBreakpoint instanceof ICDIWatchpoint )
|
||||
doHandleWatchpointCreatedEvent( (ICDIWatchpoint)cdiBreakpoint );
|
||||
else if ( cdiBreakpoint instanceof ICDILocationBreakpoint )
|
||||
doHandleLocationBreakpointCreatedEvent( (ICDILocationBreakpoint)cdiBreakpoint );
|
||||
if ( !cdiBreakpoint.isTemporary() && !DebugPlugin.getDefault().getBreakpointManager().isEnabled() ) {
|
||||
try {
|
||||
cdiBreakpoint.setEnabled( false );
|
||||
|
@ -406,6 +406,11 @@ public class CBreakpointManager implements IBreakpointManagerListener, ICDIEvent
|
|||
}
|
||||
}
|
||||
if ( breakpoint != null ) {
|
||||
try {
|
||||
breakpoint.setTargetFilter( getDebugTarget() );
|
||||
}
|
||||
catch( CoreException e ) {
|
||||
}
|
||||
getBreakpointNotifier().breakpointInstalled( getDebugTarget(), breakpoint );
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue