1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-29 19:45:01 +02:00

Fix for bug 220449

ExpressionService parses strings when requesting an address and only keeps the address part.
This commit is contained in:
Marc Khouzam 2008-02-26 20:34:20 +00:00
parent 9150b06a8f
commit 7456589c4f

View file

@ -631,7 +631,14 @@ public class ExpressionService extends AbstractDsfService implements IExpression
new DataRequestMonitor<MIDataEvaluateExpressionInfo>(getExecutor(), rm) {
@Override
protected void handleOK() {
final String addrStr = getData().getValue();
String tmpAddrStr = getData().getValue();
// Deal with adresses of contents of a char* which is in
// the form of "0x12345678 \"This is a string\""
int split = tmpAddrStr.indexOf(' ');
if (split != -1) tmpAddrStr = tmpAddrStr.substring(0, split);
final String addrStr = tmpAddrStr;
fExpressionCache.execute(
new MIDataEvaluateExpression<MIDataEvaluateExpressionInfo>(sizeDmc),
new DataRequestMonitor<MIDataEvaluateExpressionInfo>(getExecutor(), rm) {