libdebug.snapshots.registers.snapshot_registers
SnapshotRegisters
Bases: Registers
Class that holds the state of the architectural-dependent registers of a snapshot.
Source code in libdebug/snapshots/registers/snapshot_registers.py
__init__(thread_id, generic_regs, special_regs, vec_fp_regs)
Initializes the Registers object.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
thread_id
|
int
|
The thread ID. |
required |
generic_regs
|
list[str]
|
The list of registers to include in the repr. |
required |
special_regs
|
list[str]
|
The list of special registers to include in the repr. |
required |
vec_fp_regs
|
list[str]
|
The list of vector and floating point registers to include in the repr |
required |
Source code in libdebug/snapshots/registers/snapshot_registers.py
filter(value)
Filters the registers by value.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
value
|
float
|
The value to search for. |
required |
Returns:
| Type | Description |
|---|---|
list[str]
|
list[str]: A list of names of the registers containing the value. |