manpagez: man pages & more
info gdb
Home | html | info | man
[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

8.14 Memory Region Attributes

Memory region attributes allow you to describe special handling required by regions of your target's memory. No value for GDBN uses attributes to determine whether to allow certain types of memory accesses; whether to use specific width accesses; and whether to cache target memory. By default the description of memory regions is fetched from the target (if the current target supports this), but the user can override the fetched regions.

Defined memory regions can be individually enabled and disabled. When a memory region is disabled, No value for GDBN uses the default attributes when accessing memory in that region. Similarly, if no memory regions have been defined, No value for GDBN uses the default attributes when accessing all memory.

When a memory region is defined, it is given a number to identify it; to enable, disable, or remove a memory region, you specify that number.

mem lower upper attributes

Define a memory region bounded by lower and upper with attributes attributes…, and add it to the list of regions monitored by No value for GDBN. Note that upper == 0 is a special case: it is treated as the target's maximum memory address. (0xffff on 16 bit targets, 0xffffffff on 32 bit targets, etc.)

mem auto

Discard any user changes to the memory regions and use target-supplied regions, if available, or no regions if the target does not support.

delete mem nums

Remove memory regions nums… from the list of regions monitored by No value for GDBN.

disable mem nums

Disable monitoring of memory regions nums…. A disabled memory region is not forgotten. It may be enabled again later.

enable mem nums

Enable monitoring of memory regions nums….

info mem

Print a table of all defined memory regions, with the following columns for each region:

Memory Region Number
Enabled or Disabled.

Enabled memory regions are marked with ‘y’. Disabled memory regions are marked with ‘n’.

Lo Address

The address defining the inclusive lower bound of the memory region.

Hi Address

The address defining the exclusive upper bound of the memory region.

Attributes

The list of attributes set for this memory region.


[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]
© manpagez.com 2000-2024
Individual documents may contain additional copyright information.