Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [platform-debug-dev] New Register's view doesn't ask my registers to compute a detail value

This was by design in the debug platform, since a registers view did not 
exist. Could be solved in the subclass or in the base class. Could you 
please file a bug (with the suggested fix/patch, since you can test it?)

Thanks,

Darin




Alan Boxall/Toronto/IBM@IBMCA 
Sent by: platform-debug-dev-admin@xxxxxxxxxxx
05/06/2004 01:13 PM
Please respond to
platform-debug-dev


To
platform-debug-dev@xxxxxxxxxxx
cc

Subject
Re: [platform-debug-dev] New Register's view doesn't ask my registers to 
compute a detail value







Good news!   I debugged the core debugger code and found that the problem 
was in my code.   I was not returning the proper model presentation ID. 

But I did notice that in the following code I can't get detail for a 
register group.   The code that has ">" will not get a value from an 
IRegisterGroup 

Just want to know if this was by design or just because it was inherited 
from the Variables view? 

if (!selection.isEmpty()) { 
        IValue val = null; 
        Object obj = selection.getFirstElement(); 
        if (obj instanceof IndexedVariablePartition) { 
                // no details for parititions 
                return; 
        } 
>        if (obj instanceof IVariable) { 
>                val = ((IVariable)obj).getValue(); 
>        } else if (obj instanceof IExpression) { 
>                val = ((IExpression)obj).getValue(); 
>        } 
>        if (val == null) { 
>                return; 
>        }                         
        // workaroud for bug 12938 
        if (fValueSelection != null && fValueSelection.equals(selection)) 
{ 
                return; 
        } 
 
        setDebugModel(val.getModelIdentifier()); 
        fValueSelection = selection; 
        fSelectionIterator = selection.iterator(); 
        fSelectionIterator.next(); 
        fLastValueDetail= val; 
        getModelPresentation().computeDetail(val, this); 
} 


Alan Boxall - IBM Distributed Debugger



Back to the top