summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHarish Dewan2012-01-24 09:17:36 (EST)
committerMarc Khouzam2012-01-24 09:23:38 (EST)
commit7dcb19c4c143fc9bdf6154e411d3c452c5c62afd (patch)
tree2eaefa00c3e7e3b4f6b5164f1e871a0a68bc69c3
parent8df0648343ce6283e92a6dd0c3eb6380a614a4cc (diff)
downloadorg.eclipse.cdt-7dcb19c4c143fc9bdf6154e411d3c452c5c62afd.zip
org.eclipse.cdt-7dcb19c4c143fc9bdf6154e411d3c452c5c62afd.tar.gz
org.eclipse.cdt-7dcb19c4c143fc9bdf6154e411d3c452c5c62afd.tar.bz2
Bug 369377: Output for command -data-read-memory should include value of 'nr-bytes' field
-rw-r--r--dsf-gdb/org.eclipse.cdt.dsf.gdb/src/org/eclipse/cdt/dsf/mi/service/command/output/MIDataReadMemoryInfo.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/dsf-gdb/org.eclipse.cdt.dsf.gdb/src/org/eclipse/cdt/dsf/mi/service/command/output/MIDataReadMemoryInfo.java b/dsf-gdb/org.eclipse.cdt.dsf.gdb/src/org/eclipse/cdt/dsf/mi/service/command/output/MIDataReadMemoryInfo.java
index 7c3871c..1ba3776 100644
--- a/dsf-gdb/org.eclipse.cdt.dsf.gdb/src/org/eclipse/cdt/dsf/mi/service/command/output/MIDataReadMemoryInfo.java
+++ b/dsf-gdb/org.eclipse.cdt.dsf.gdb/src/org/eclipse/cdt/dsf/mi/service/command/output/MIDataReadMemoryInfo.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2000, 2009 QNX Software Systems and others.
+ * Copyright (c) 2000, 2012 QNX Software Systems and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -9,6 +9,7 @@
* QNX Software Systems - Initial API and implementation
* Ericsson AB - Modified for new DSF Reference Implementation
* Ericsson AB - Reverted to byte[] and processed multi-line results
+ * Harish Dewan (Tensilica Inc) - Bug 369377: Output for command should include value of 'nr-bytes' field
*******************************************************************************/
package org.eclipse.cdt.dsf.mi.service.command.output;
@@ -139,7 +140,7 @@ public class MIDataReadMemoryInfo extends MIInfo {
}
// Parse 'nr-bytes="x"', the number of bytes read
- if (var.equals("total-bytes")) { //$NON-NLS-1$
+ if (var.equals("nr-bytes")) { //$NON-NLS-1$
MIValue value = results[i].getMIValue();
if (value instanceof MIConst) {
String size = ((MIConst) value).getCString();