You copied the Doc URL to your clipboard.

1.3.138 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.

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-141 Examples

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

Related reference