mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-08-04 23:05:47 +02:00
2004-09-21 Mikhail Khodjaiants
Changes to the IBinary interface * CDebugTarget.java
This commit is contained in:
parent
e8cab177d9
commit
d4a7887d9b
2 changed files with 8 additions and 1 deletions
|
@ -1,3 +1,7 @@
|
||||||
|
2004-09-21 Mikhail Khodjaiants
|
||||||
|
Changes to the IBinary interface
|
||||||
|
* CDebugTarget.java
|
||||||
|
|
||||||
2004-09-20 Mikhail Khodjaiants
|
2004-09-20 Mikhail Khodjaiants
|
||||||
Evaluate expressions on stack frame instead of target to provide evaluation context.
|
Evaluate expressions on stack frame instead of target to provide evaluation context.
|
||||||
* ICDebugTarget.java
|
* ICDebugTarget.java
|
||||||
|
|
|
@ -20,6 +20,7 @@ import java.util.StringTokenizer;
|
||||||
import org.eclipse.cdt.core.CCorePlugin;
|
import org.eclipse.cdt.core.CCorePlugin;
|
||||||
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.IBinaryParser;
|
||||||
import org.eclipse.cdt.core.model.CModelException;
|
import org.eclipse.cdt.core.model.CModelException;
|
||||||
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;
|
||||||
|
@ -1827,7 +1828,9 @@ public class CDebugTarget extends CDebugElement implements ICDebugTarget, ICDIEv
|
||||||
if ( getExecFile() != null && CoreModel.getDefault().isBinary( getExecFile() ) ) {
|
if ( getExecFile() != null && CoreModel.getDefault().isBinary( getExecFile() ) ) {
|
||||||
ICElement cFile = CCorePlugin.getDefault().getCoreModel().create( getExecFile() );
|
ICElement cFile = CCorePlugin.getDefault().getCoreModel().create( getExecFile() );
|
||||||
if ( cFile instanceof IBinary ) {
|
if ( cFile instanceof IBinary ) {
|
||||||
fAddressFactory = ((IBinary)cFile).getAddressFactory();
|
IBinaryParser.IBinaryObject obj;
|
||||||
|
obj = (IBinaryParser.IBinaryObject)cFile.getAdapter(IBinaryParser.IBinaryObject.class);
|
||||||
|
fAddressFactory = obj.getAddressFactory();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue