crash.types.module module

crash.types.module.for_each_module() → Iterable[gdb.Value][source]

Iterate over each module in the modules list

Yields:gdb.Value – The next module on the list. The value is of type struct module.
crash.types.module.for_each_module_section(module: gdb.Value) → Iterable[Tuple[str, int]][source]

Iterate over each ELF section in a loaded module

This routine iterates over the sect_attrs member of the struct module already in memory. For ELF sections from the module at rest, use pyelftools on the module file.

Parameters:module – The struct module to iterate. The value must be of type struct module.
Yields:(str, int) – A 2-tuple containing the name and address of the section
Raises:gdb.NotAvailableError – The target value is not available.