summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHarish Dewan2012-01-24 09:17:36 (EST)
committer Marc Khouzam2012-01-24 09:22:30 (EST)
commitd5dbaef1593e865917fc37a10ee52d505cf18791 (patch)
tree42a014d98321db9718858ff677c34dd40162a16d
parent174abac647fe6c8108af2751819c67527ad5c9d1 (diff)
downloadorg.eclipse.cdt-d5dbaef1593e865917fc37a10ee52d505cf18791.zip
org.eclipse.cdt-d5dbaef1593e865917fc37a10ee52d505cf18791.tar.gz
org.eclipse.cdt-d5dbaef1593e865917fc37a10ee52d505cf18791.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();