1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-23 14:42:11 +02:00

2004-11-02 Alain Magloire

Tentative fix for PR 77435
	* cdi/org/eclipse/cdt/debug/mi/core/cdi/VariableManager.java
This commit is contained in:
Alain Magloire 2004-11-02 14:58:24 +00:00
parent 2473fc9bad
commit c1db45f6f6
2 changed files with 19 additions and 2 deletions

View file

@ -1,3 +1,7 @@
2004-11-02 Alain Magloire
Tentative fix for PR 77435
* cdi/org/eclipse/cdt/debug/mi/core/cdi/VariableManager.java
2004-10-31 Alain Magloire
Tentative fix for PR 74496

View file

@ -261,7 +261,20 @@ public class VariableManager extends Manager {
int pos = varDesc.getPosition();
int depth = varDesc.getStackDepth();
checkType(frame, type);
// Check the type validity.
{
StackFrame f = frame;
if (f == null) {
if (thread != null) {
f = thread.getCurrentStackFrame();
} else {
Thread t = (Thread)target.getCurrentThread();
f = t.getCurrentStackFrame();
}
}
checkType(f, type);
}
VariableDescriptor vo = null;
if (varDesc instanceof ArgumentDescriptor || varDesc instanceof Argument) {