Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'dsf-gdb/org.eclipse.cdt.dsf.gdb/src/org/eclipse/cdt/dsf/mi/service/command/commands/MIDataReadMemoryBytes.java')
-rw-r--r--dsf-gdb/org.eclipse.cdt.dsf.gdb/src/org/eclipse/cdt/dsf/mi/service/command/commands/MIDataReadMemoryBytes.java19
1 files changed, 8 insertions, 11 deletions
diff --git a/dsf-gdb/org.eclipse.cdt.dsf.gdb/src/org/eclipse/cdt/dsf/mi/service/command/commands/MIDataReadMemoryBytes.java b/dsf-gdb/org.eclipse.cdt.dsf.gdb/src/org/eclipse/cdt/dsf/mi/service/command/commands/MIDataReadMemoryBytes.java
index 21e5272191e..43d80f0ab49 100644
--- a/dsf-gdb/org.eclipse.cdt.dsf.gdb/src/org/eclipse/cdt/dsf/mi/service/command/commands/MIDataReadMemoryBytes.java
+++ b/dsf-gdb/org.eclipse.cdt.dsf.gdb/src/org/eclipse/cdt/dsf/mi/service/command/commands/MIDataReadMemoryBytes.java
@@ -23,42 +23,39 @@ import org.eclipse.cdt.dsf.mi.service.command.output.MIOutput;
* -data-read-memory-bytes [ -o BYTE-OFFSET ]
* ADDRESS COUNT
* where:
- *
+ *
* `ADDRESS'
* An expression specifying the address of the first memory word to be
* read. Complex expressions containing embedded white space should
* be quoted using the C convention.
- *
+ *
* `COUNT'
* The number of addressable units to read. This should be an integer literal.
- *
+ *
* `BYTE-OFFSET'
* The offset in addressable units relative to ADDRESS at which to start
* reading. This should be an integer literal. This option is
* provided so that a frontend is not required to first evaluate
* address and then perform address arithmetics itself.
* @since 4.0
- */
+ */
public class MIDataReadMemoryBytes extends MICommand<MIDataReadMemoryBytesInfo> {
-
+
private static final int DEFAULT_ADDRESSABLE_SIZE = 1;
private int fCount;
private int fword_size;
- public MIDataReadMemoryBytes(IDMContext ctx, String address, long offset,
- int count) {
+ public MIDataReadMemoryBytes(IDMContext ctx, String address, long offset, int count) {
this(ctx, address, offset, count, DEFAULT_ADDRESSABLE_SIZE);
}
-
/**
* @param count - The number of addressable units to read from memory
* @since 4.4
*/
- public MIDataReadMemoryBytes(IDMContext ctx, String address, long offset,
- int count, int word_size) {
+ public MIDataReadMemoryBytes(IDMContext ctx, String address, long offset, int count, int word_size) {
super(ctx, "-data-read-memory-bytes"); //$NON-NLS-1$
-
+
fCount = count;
fword_size = word_size;

Back to the top