1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-18 06:25:23 +02:00

Bug 82264: Enhance the Shared Libraries view. Support for the symbols loading operations.

This commit is contained in:
Mikhail Khodjaiants 2005-02-15 20:49:24 +00:00
parent 87ca6fed25
commit 0e6c24fc42
3 changed files with 17 additions and 7 deletions

View file

@ -1,3 +1,9 @@
2005-02-15 Mikhail Khodjaiants
Bug 82264: Enhance the Shared Libraries view.
Support for the symbols loading operations.
* CModule.java
* CoreModelMessages.properties
2005-02-14 Mikhail Khodjaiants
Bug 82264: Enhance the Shared Libraries view.
Support for the symbols loading operations.

View file

@ -10,14 +10,13 @@
***********************************************************************/
package org.eclipse.cdt.debug.internal.core.model;
import java.io.File;
import java.math.BigInteger;
import java.text.MessageFormat;
import org.eclipse.cdt.core.IAddress;
import org.eclipse.cdt.core.IAddressFactory;
import org.eclipse.cdt.core.model.CoreModel;
import org.eclipse.cdt.core.model.IBinary;
import org.eclipse.cdt.core.model.ICElement;
import org.eclipse.cdt.debug.core.cdi.CDIException;
import org.eclipse.cdt.debug.core.cdi.model.ICDIObject;
import org.eclipse.cdt.debug.core.cdi.model.ICDISharedLibrary;
import org.eclipse.cdt.debug.core.model.ICModule;
@ -223,10 +222,16 @@ public class CModule extends CDebugElement implements ICModule {
if ( path == null || path.isEmpty() ) {
requestFailed( CoreModelMessages.getString( "CModule.2" ), null ); //$NON-NLS-1$
}
File file = new File( path.toOSString() );
if ( !file.exists() ) {
requestFailed( MessageFormat.format( CoreModelMessages.getString( "CModule.3" ), new String[] { path.toOSString() } ), null ); //$NON-NLS-1$
String message = CoreModelMessages.getString( "CModule.4" ); //$NON-NLS-1$
if ( fCDIObject instanceof ICDISharedLibrary ) {
try {
((ICDISharedLibrary)fCDIObject).loadSymbols();
return;
}
catch( CDIException e ) {
message = e.getMessage();
}
}
targetRequestFailed( CoreModelMessages.getString( "CModule.4" ), null ); //$NON-NLS-1$
targetRequestFailed( message, null );
}
}

View file

@ -30,7 +30,6 @@ CIndexedValue.2=Specified range out of bounds.
CModule.0=Unknown
CModule.1=Unknown
CModule.2=Invalid symbols file.
CModule.3=Symbols file ''{0}'' not found.
CModule.4=Not supported
CModuleManager.0=Error loading symbols.
CModuleManager.1=Error loading symbols.