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

Partial fix for bug 118114: Cannot view typedef'ed array in debugger.

This commit is contained in:
Mikhail Khodjaiants 2005-11-29 21:35:57 +00:00
parent a6a01fae51
commit 02eb2cab43
2 changed files with 5 additions and 4 deletions

View file

@ -1,3 +1,7 @@
2005-11-29 Mikhail Khodjaiants
Partial fix for bug 118114: Cannot view typedef'ed array in debugger.
* cdi/org/eclipse/cdt/debug/mi/core/cdi/model/VariableDescriptor.java
2005-11-29 Mikhail Khodjaiants 2005-11-29 Mikhail Khodjaiants
Bug 100298: [Memory View] Changing variable's value from variables view or memory view doesn't sync to each other. Bug 100298: [Memory View] Changing variable's value from variables view or memory view doesn't sync to each other.
* cdi/org/eclipse/cdt/debug/mi/core/cdi/model/Variable.java * cdi/org/eclipse/cdt/debug/mi/core/cdi/model/Variable.java

View file

@ -121,10 +121,7 @@ public abstract class VariableDescriptor extends CObject implements ICDIVariable
StringBuffer buffer = new StringBuffer(); StringBuffer buffer = new StringBuffer();
buffer.append("*("); //$NON-NLS-1$ buffer.append("*("); //$NON-NLS-1$
buffer.append('(').append(fn).append(')'); buffer.append('(').append(fn).append(')');
if (castingIndex != 0) { buffer.append('+').append(castingIndex).append(')');
buffer.append('+').append(castingIndex);
}
buffer.append(')');
buffer.append('@').append(castingLength); buffer.append('@').append(castingLength);
fn = buffer.toString(); fn = buffer.toString();
} else if (castingTypes != null && castingTypes.length > 0) { } else if (castingTypes != null && castingTypes.length > 0) {