1.3.140 set elf zero-extra-segment-bytes

Enables zeroing of bytes from p_filesz to p_memsz when loading segments of ELF images to the target.

When loading segments of ELF images to the target, by default, the debugger only writes p_filesz bytes to the target. If p_filesz is less than p_memsz, and you want the debugger to pad the region from p_filesz to p_memsz with zero then enable elf zero-extra-segment-bytes.

Note:

The ELF Program Header for the corresponding segment specifies the p_filesz.

Syntax

set elf zero-extra-segment-bytes {off|on}

Where:

off

Disables zeroing. This is the default.

on

Enables zeroing the region from p_filesz top_memsz.

Example 1-143 Examples

set elf zero-extra-segment-bytes on      # Enable zeroing from p_filesz to p_memsz
Non-ConfidentialPDF file icon PDF versionARM DUI0452Z
Copyright © 2010-2016 ARM Limited or its affiliates. All rights reserved.