struct SegmentDisposition
Defined at line 36 of file ../../src/lib/zxdump/include/lib/zxdump/dump.h
This is used in the return value of the `prune_segment` callback passed to
zxdump::ProcessDump
<
...>::CollectProcess. It says how much of the segment
to include in the dump. Default-constructed state elides the whole segment.
The callback receives zx_info_maps_t and zx_info_vmo_t data about the
mapping and the memory to consider; and an zxdump::SegmentDisposition
describing the default policy, which is usually to dump the whole thing,
i.e. `filesz = maps.size`. It can set `filesz = 0` to elide the segment;
or set it to a smaller size to include only part of the segment. It can
optionally also request that a PT_NOTE segment be generated.
Public Members
size_t filesz
optional note