command m
Format: ‘m addr,length’
Meaning: Read length addressable memory units starting at address addr. Note that addr does not have to be aligned to any particular boundary.
The stub need not use any particular size or alignment when gathering data from memory for the response; even if addr is word-aligned and length is a multiple of the word size, the stub is free to use byte accesses, or not. For this reason, this packet may not be suitable for accessing memory-mapped I/O devices.
Reply: ‘XX…’
Memory contents; each byte is transmitted as a two-digit hexadecimal number. The reply may contain fewer addressable memory units than requested if the server was reading from a trace frame memory and was able to read only part of the region of memory.
Unlike most packets, this packet does not support ‘E.errtext’-style textual error replies (see textual error reply) by default. Stubs should be careful to only send such a reply if GDB reported support for it with the error-message feature.