mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-08-16 20:55:44 +02:00
Bug 82264: Enhance the Shared Libraries view. Support for the symbols loading operations.
This commit is contained in:
parent
87ca6fed25
commit
0e6c24fc42
3 changed files with 17 additions and 7 deletions
|
@ -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
|
2005-02-14 Mikhail Khodjaiants
|
||||||
Bug 82264: Enhance the Shared Libraries view.
|
Bug 82264: Enhance the Shared Libraries view.
|
||||||
Support for the symbols loading operations.
|
Support for the symbols loading operations.
|
||||||
|
|
|
@ -10,14 +10,13 @@
|
||||||
***********************************************************************/
|
***********************************************************************/
|
||||||
package org.eclipse.cdt.debug.internal.core.model;
|
package org.eclipse.cdt.debug.internal.core.model;
|
||||||
|
|
||||||
import java.io.File;
|
|
||||||
import java.math.BigInteger;
|
import java.math.BigInteger;
|
||||||
import java.text.MessageFormat;
|
|
||||||
import org.eclipse.cdt.core.IAddress;
|
import org.eclipse.cdt.core.IAddress;
|
||||||
import org.eclipse.cdt.core.IAddressFactory;
|
import org.eclipse.cdt.core.IAddressFactory;
|
||||||
import org.eclipse.cdt.core.model.CoreModel;
|
import org.eclipse.cdt.core.model.CoreModel;
|
||||||
import org.eclipse.cdt.core.model.IBinary;
|
import org.eclipse.cdt.core.model.IBinary;
|
||||||
import org.eclipse.cdt.core.model.ICElement;
|
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.ICDIObject;
|
||||||
import org.eclipse.cdt.debug.core.cdi.model.ICDISharedLibrary;
|
import org.eclipse.cdt.debug.core.cdi.model.ICDISharedLibrary;
|
||||||
import org.eclipse.cdt.debug.core.model.ICModule;
|
import org.eclipse.cdt.debug.core.model.ICModule;
|
||||||
|
@ -223,10 +222,16 @@ public class CModule extends CDebugElement implements ICModule {
|
||||||
if ( path == null || path.isEmpty() ) {
|
if ( path == null || path.isEmpty() ) {
|
||||||
requestFailed( CoreModelMessages.getString( "CModule.2" ), null ); //$NON-NLS-1$
|
requestFailed( CoreModelMessages.getString( "CModule.2" ), null ); //$NON-NLS-1$
|
||||||
}
|
}
|
||||||
File file = new File( path.toOSString() );
|
String message = CoreModelMessages.getString( "CModule.4" ); //$NON-NLS-1$
|
||||||
if ( !file.exists() ) {
|
if ( fCDIObject instanceof ICDISharedLibrary ) {
|
||||||
requestFailed( MessageFormat.format( CoreModelMessages.getString( "CModule.3" ), new String[] { path.toOSString() } ), null ); //$NON-NLS-1$
|
try {
|
||||||
|
((ICDISharedLibrary)fCDIObject).loadSymbols();
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
catch( CDIException e ) {
|
||||||
|
message = e.getMessage();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
targetRequestFailed( CoreModelMessages.getString( "CModule.4" ), null ); //$NON-NLS-1$
|
targetRequestFailed( message, null );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -30,7 +30,6 @@ CIndexedValue.2=Specified range out of bounds.
|
||||||
CModule.0=Unknown
|
CModule.0=Unknown
|
||||||
CModule.1=Unknown
|
CModule.1=Unknown
|
||||||
CModule.2=Invalid symbols file.
|
CModule.2=Invalid symbols file.
|
||||||
CModule.3=Symbols file ''{0}'' not found.
|
|
||||||
CModule.4=Not supported
|
CModule.4=Not supported
|
||||||
CModuleManager.0=Error loading symbols.
|
CModuleManager.0=Error loading symbols.
|
||||||
CModuleManager.1=Error loading symbols.
|
CModuleManager.1=Error loading symbols.
|
||||||
|
|
Loading…
Add table
Reference in a new issue