| author | John Dallaway | 2011-10-26 16:15:43 (EDT) |
|---|---|---|
| committer | Marc Khouzam | 2011-10-26 16:15:43 (EDT) |
| commit | e03958b6ad00d5a09daf0d7f8933d8d2ef4bb153 (patch) (side-by-side diff) | |
| tree | 5be6c92df1f02566796f4d5dbd6343316f117d4a | |
| parent | e4aed35b52b3147454de80a8793c912d617dc68f (diff) | |
| download | org.eclipse.cdt-e03958b6ad00d5a09daf0d7f8933d8d2ef4bb153.zip org.eclipse.cdt-e03958b6ad00d5a09daf0d7f8933d8d2ef4bb153.tar.gz org.eclipse.cdt-e03958b6ad00d5a09daf0d7f8933d8d2ef4bb153.tar.bz2 | |
Bug 341762: MIDataReadMemory problem when word_size != 1
| -rw-r--r-- | dsf-gdb/org.eclipse.cdt.dsf.gdb/src/org/eclipse/cdt/dsf/mi/service/command/commands/MIDataReadMemory.java | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/dsf-gdb/org.eclipse.cdt.dsf.gdb/src/org/eclipse/cdt/dsf/mi/service/command/commands/MIDataReadMemory.java b/dsf-gdb/org.eclipse.cdt.dsf.gdb/src/org/eclipse/cdt/dsf/mi/service/command/commands/MIDataReadMemory.java index fd243eb..ef3d6b2 100644 --- a/dsf-gdb/org.eclipse.cdt.dsf.gdb/src/org/eclipse/cdt/dsf/mi/service/command/commands/MIDataReadMemory.java +++ b/dsf-gdb/org.eclipse.cdt.dsf.gdb/src/org/eclipse/cdt/dsf/mi/service/command/commands/MIDataReadMemory.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2000, 2009, 2007 QNX Software Systems and others. + * Copyright (c) 2000, 2011 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 @@ -8,6 +8,7 @@ * Contributors: * QNX Software Systems - Initial API and implementation * Ericsson AB - Modified for new DSF Reference Implementation + * John Dallaway - Accept word size bigger than 1 (Bug 341762) *******************************************************************************/ package org.eclipse.cdt.dsf.mi.service.command.commands; @@ -74,7 +75,7 @@ public class MIDataReadMemory extends MICommand<MIDataReadMemoryInfo> { fword_size = word_size; if (offset != 0) { - setOptions(new String[] { "-o", Long.toString(offset * word_size)}); //$NON-NLS-1$ + setOptions(new String[] { "-o", Long.toString(offset)}); //$NON-NLS-1$ } String format = "x"; //$NON-NLS-1$ @@ -128,17 +129,17 @@ public class MIDataReadMemory extends MICommand<MIDataReadMemoryInfo> { new String[] { address, format, - Integer.toString(1), // wordSize + Integer.toString(word_size), Integer.toString(rows), - Integer.toString(cols * word_size)}); + Integer.toString(cols)}); } else { setParameters( new String[] { address, format, - Integer.toString(1), // wordSize + Integer.toString(word_size), Integer.toString(rows), - Integer.toString(cols * word_size), + Integer.toString(cols), asChar.toString()}); } } |

