memory set

This command writes to memory.

Show/hideSyntax

memory set address width expression

Where:

address

Specifies an address to start writing to.

width

Specifies the access width (bits) to use when writing to memory. Widths are target dependent. For example:

8

8-bit

16

16-bit

32

32-bit

64

64-bit.

Alternatively you can specify zero to enable the debugger to determine the access width.

expression

Specifies an expression that evaluates to an array of bytes.

Note

This command sets a default address variable to the value of the memory address. Some commands, such as x, use this default value if no address is specified.

Show/hideExample

Example 77. memory set

memory set 0x1000 0 {(unsigned char)0x10,(unsigned char)0xFF,(unsigned char)1,(unsigned
char)2,(unsigned char)3,(unsigned char)42}          # Assign an array to memory
memory set 0x1000 0 (unsigned int)0x1000            # Assign an integer to memory
memory set 0x1000 8 99                              # Write 99 decimal as a byte-write
                                                    # to address 0x1000

Show/hideSee also

Copyright © 2010, 2011 ARM. All rights reserved.ARM DUI 0452D
Non-ConfidentialID011411