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

Bug 98594: Unable to set address breakpoints.

This commit is contained in:
Mikhail Khodjaiants 2005-06-06 21:34:10 +00:00
parent 2290223ab3
commit 20da0b9f50
2 changed files with 9 additions and 5 deletions

View file

@ -1,3 +1,7 @@
2005-06-06 Mikhail Khodjaiants
Bug 98594: Unable to set address breakpoints.
* CBreakpointManager.java
2005-05-24 Mikhail Khodjaiants
Bug 88558: run-to-line not thread oriented.
The IRunTo* and IJumpTo* interfaces moved to ICStackFrame.

View file

@ -519,16 +519,16 @@ public class CBreakpointManager implements IBreakpointManagerListener, ICDIEvent
synchronized ( getBreakpointMap() ) {
ICDIBreakpoint cdiBreakpoint = getBreakpointMap().getCDIBreakpoint( breakpoint );
if ( cdiBreakpoint == null ) {
if ( location instanceof ICDILineLocation ) {
cdiBreakpoint = target.setLineBreakpoint( ICDIBreakpoint.REGULAR,
(ICDILineLocation)location, condition, true );
} else if ( location instanceof ICDIFunctionLocation ) {
if ( breakpoint instanceof ICFunctionBreakpoint ) {
cdiBreakpoint = target.setFunctionBreakpoint( ICDIBreakpoint.REGULAR,
(ICDIFunctionLocation)location, condition, true );
} else if ( location instanceof ICDIAddressLocation ) {
} else if ( breakpoint instanceof ICAddressBreakpoint ) {
cdiBreakpoint = target.setAddressBreakpoint( ICDIBreakpoint.REGULAR,
(ICDIAddressLocation)location, condition, true );
} else if ( breakpoint instanceof ICLineBreakpoint ) {
cdiBreakpoint = target.setLineBreakpoint( ICDIBreakpoint.REGULAR,
(ICDILineLocation)location, condition, true );
}
if ( !enabled ) {
cdiBreakpoint.setEnabled( false );