You copied the Doc URL to your clipboard.

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 debuger 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-139 Examples

set elf zero-extra-segment-bytes on      # Enable zeroing from p_filesz to p_memsz
Related reference