crash.arch package¶
-
class
crash.arch.
CrashArchitecture
[source]¶ Bases:
object
-
aliases
= []¶
-
ident
= 'base-class'¶
-
classmethod
set_fetch_registers
(callback: Type[crash.arch.FetchRegistersCallback]) → None[source]¶ Set a fetch_regisers callback for the Target to use.
Parameters: callback – A Callable that accepts a gdb.InferiorThread
andgdb.Register
and populates the requested registers for the specified thread. A register with the seemingly invalid register number of -1 is a request to populate all registers.
-
-
class
crash.arch.
FetchRegistersCallback
[source]¶ Bases:
object
The base class from which to implement the fetch_registers callback.
The architecture code must implement the
fetch_active()
andfetch_scheduled()
methods.