Name

mem

mem start-addr end-addr attributes ...

Define a memory region—i.e., a portion of the address space starting at start-addr and ending at end-addr that has particular attributes.

Memory Access Attributes

ro

Memory is read-only.

rw

Memory is read-write.

wo

Memory is write-only.

8, 16, 32, 64

GDB should use memory accesses of the specified width in bits. This is often needed for memory-mapped device registers.

Get GDB Pocket Reference now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.