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:
parent
87b69a7f19
commit
f74aa0ca4a
1 changed files with 7 additions and 2 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue