1.3.138 set elf cache-uninitialized-sections

Controls whether the debugger caches uninitialized sections.

After the symbols for an image are loaded, the debugger by default marks regions corresponding to ELF sections as cacheable if:

  • The section has sht_type that is set to one of:

    • SHT_PROGBITS
    • SHT_INIT_ARRAY
    • SHT_FINI_ARRAY
    • SHT_PREINIT_ARRAY
    • SHT_NOBITS.
  • The SHF_ALLOC flag in sh_flags is set for the section.

This can result in uninitialized sections, or volatile regions of the address space, for example peripherals, being set to cacheable by default. To overcome this problem, you can use set elf cache-uninitialized-sections off to disable the debugger from caching such ELF sections.

Syntax

set elf cache-uninitialized-sections {off|on}

Where:

off

Disables caching of uninitialized sections.

on

Enables caching of uninitialized sections. This is the default.

Example 1-141 Examples

set elf cache-uninitialized-sections off     # Disable caching of uninitialized sections
Non-ConfidentialPDF file icon PDF versionARM DUI0452Z
Copyright © 2010-2016 ARM Limited or its affiliates. All rights reserved.