----- Original Message -----
Sent: Thursday, May 06, 2004 2:13
PM
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