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.


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


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



Disables zeroing. This is the default.


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.