1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-31 04:45:38 +02:00

Fixed bugzilla 240719. Element is now first checked to see if it's a ICDISharedLibrary, and then if not, an IBinary

This commit is contained in:
John Cortell 2008-07-14 20:31:19 +00:00
parent 87b69a7f19
commit f74aa0ca4a

View file

@ -138,8 +138,13 @@ public class CModule extends CDebugElement implements ICModule {
* @see org.eclipse.cdt.debug.core.model.ICModule#areSymbolsLoaded()
*/
public boolean areSymbolsLoaded() {
return ( fCElement instanceof IBinary ) ? ((IBinary)fCElement).hasDebug() :
( ( fCDIObject instanceof ICDISharedLibrary ) ? ((ICDISharedLibrary)fCDIObject).areSymbolsLoaded() : false );
if (fCDIObject instanceof ICDISharedLibrary)
return ((ICDISharedLibrary)fCDIObject).areSymbolsLoaded();
if (fCElement instanceof IBinary)
return ((IBinary)fCElement).hasDebug();
return false;
}
/* (non-Javadoc)