crash.types.klist module

exception crash.types.klist.KlistCorruptedError[source]

Bases: crash.exceptions.CorruptedError

crash.types.klist.klist_for_each(klist: gdb.Value) → Iterable[gdb.Value][source]

Iterate over a klist and yield each node

Parameters:

klist – The list to iterate. The value must be of type struct klist or struct klist *.

Yields:

gdb.Value

The next node in the list. The value is of type

struct klist_node.

crash.types.klist.klist_for_each_entry(klist: gdb.Value, gdbtype: gdb.Type, member: str) → Iterable[gdb.Value][source]

Iterate over a klist and yield each node’s containing object

Parameters:
  • klist – The list to iterate. The value must be of type struct klist or struct klist *.
  • gdbtype – The type of the containing object
  • member – The name of the member in the containing object that corresponds to the klist_node
Yields:

gdb.Value – The next node in the list. The value is of the specified type.