mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-29 19:45:01 +02:00
'getCDIBreakpointFile' returns wrong file for address breakpoints.
This commit is contained in:
parent
1f66ca3c05
commit
1437abe67d
2 changed files with 7 additions and 1 deletions
|
@ -1,3 +1,7 @@
|
|||
2003-11-05 Mikhail Khodjaiants
|
||||
'getCDIBreakpointFile' returns wrong file for address breakpoints.
|
||||
* CBreakpointManager.java
|
||||
|
||||
2003-11-05 Mikhail Khodjaiants
|
||||
Changed the handling of the breakpoint created event to reflect the CDI changes for deferred
|
||||
breakpoints support.
|
||||
|
|
|
@ -216,6 +216,8 @@ public class CBreakpointManager implements ICBreakpointManager, ICDIEventListene
|
|||
public boolean isTargetBreakpoint( ICBreakpoint breakpoint )
|
||||
{
|
||||
IResource resource = breakpoint.getMarker().getResource();
|
||||
if ( breakpoint instanceof ICAddressBreakpoint )
|
||||
return supportsAddressBreakpoint( (ICAddressBreakpoint)breakpoint );
|
||||
if ( breakpoint instanceof ICLineBreakpoint )
|
||||
{
|
||||
ICSourceLocator sl = getSourceLocator();
|
||||
|
@ -255,7 +257,7 @@ public class CBreakpointManager implements ICBreakpointManager, ICDIEventListene
|
|||
public IFile getCDIBreakpointFile( ICDIBreakpoint cdiBreakpoint )
|
||||
{
|
||||
IBreakpoint breakpoint = getBreakpointMap().getCBreakpoint( cdiBreakpoint );
|
||||
if ( breakpoint instanceof ICLineBreakpoint )
|
||||
if ( breakpoint instanceof ICLineBreakpoint && !(breakpoint instanceof ICAddressBreakpoint) )
|
||||
{
|
||||
IResource resource = ((ICLineBreakpoint)breakpoint).getMarker().getResource();
|
||||
if ( resource instanceof IFile )
|
||||
|
|
Loading…
Add table
Reference in a new issue