Skip to main content
summaryrefslogtreecommitdiffstats
path: root/debug
diff options
context:
space:
mode:
authorJohn Cortell2008-07-14 16:04:50 -0400
committerJohn Cortell2008-07-14 16:04:50 -0400
commit17c6312a33e636e937c092329577fc856774c1cc (patch)
tree9c71e879dbb1104bf5fd1ab0bbc59b29402539a2 /debug
parentd75a7974ce731b607934d3ee7e1b17807185b23c (diff)
downloadorg.eclipse.cdt-17c6312a33e636e937c092329577fc856774c1cc.tar.gz
org.eclipse.cdt-17c6312a33e636e937c092329577fc856774c1cc.tar.xz
org.eclipse.cdt-17c6312a33e636e937c092329577fc856774c1cc.zip
Fixed bugzilla 240719. Element is first checked to see if it's a ICDISharedLibrary, and then if not, an IBinary
Diffstat (limited to 'debug')
-rw-r--r--debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/internal/core/model/CModule.java9
1 files changed, 7 insertions, 2 deletions
diff --git a/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/internal/core/model/CModule.java b/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/internal/core/model/CModule.java
index aab01b11fd..002ae85d64 100644
--- a/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/internal/core/model/CModule.java
+++ b/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/internal/core/model/CModule.java
@@ -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)

Back to the top