mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-29 19:45:01 +02:00
Fix for the 'Show breakpoints supported by selected target' action.
This commit is contained in:
parent
ac4ff7262a
commit
6130425ae3
2 changed files with 8 additions and 19 deletions
|
@ -1,3 +1,7 @@
|
|||
2003-01-20 Mikhail Khodjaiants
|
||||
Fix for the 'Show breakpoints supported by selected target' action.
|
||||
* CDebugTarget.java
|
||||
|
||||
2003-01-20 Alain Maglorei
|
||||
|
||||
* src/build.properties: Add schema in soure.cdtdebugcore.jar
|
||||
|
|
|
@ -399,23 +399,7 @@ public class CDebugTarget extends CDebugElement
|
|||
{
|
||||
if ( !getConfiguration().supportsBreakpoints() )
|
||||
return false;
|
||||
/*
|
||||
if ( breakpoint instanceof ICBreakpoint )
|
||||
{
|
||||
ISourceLocator sl = getSourceLocator();
|
||||
if ( sl != null && sl instanceof IAdaptable && ((IAdaptable)sl).getAdapter( ICSourceLocator.class ) != null )
|
||||
{
|
||||
return ((ICSourceLocator)((IAdaptable)sl).getAdapter( ICSourceLocator.class )).contains( breakpoint.getMarker().getResource() );
|
||||
}
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
*/
|
||||
if ( breakpoint instanceof ICAddressBreakpoint )
|
||||
{
|
||||
return supportsAddressBreakpoint( (ICAddressBreakpoint)breakpoint );
|
||||
}
|
||||
return true;
|
||||
return ( findCDIBreakpoint( breakpoint ) != null );
|
||||
}
|
||||
|
||||
private boolean supportsAddressBreakpoint( ICAddressBreakpoint breakpoint )
|
||||
|
@ -646,13 +630,14 @@ public class CDebugTarget extends CDebugElement
|
|||
{
|
||||
return;
|
||||
}
|
||||
if ( supportsBreakpoint( breakpoint ) )
|
||||
if ( getConfiguration().supportsBreakpoints() )
|
||||
{
|
||||
try
|
||||
{
|
||||
if ( breakpoint instanceof ICAddressBreakpoint )
|
||||
{
|
||||
setAddressBreakpoint( (ICAddressBreakpoint)breakpoint );
|
||||
if ( supportsAddressBreakpoint( (ICAddressBreakpoint)breakpoint ) )
|
||||
setAddressBreakpoint( (ICAddressBreakpoint)breakpoint );
|
||||
}
|
||||
else if ( breakpoint instanceof ICLineBreakpoint )
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue