arch ¤
Classes:
Attributes:
-
PWNDBG_SUPPORTED_ARCHITECTURES_TYPE
– -
PWNDBG_SUPPORTED_ARCHITECTURES
(list[PWNDBG_SUPPORTED_ARCHITECTURES_TYPE]
) – -
PWNLIB_ARCH_MAPPINGS
– -
PWNLIB_PLATFORM_MAPPINGS
(dict[Platform, str]
) –
PWNDBG_SUPPORTED_ARCHITECTURES_TYPE module-attribute
¤
PWNDBG_SUPPORTED_ARCHITECTURES_TYPE = Literal[
"x86-64",
"i386",
"i8086",
"mips",
"aarch64",
"arm",
"armcm",
"rv32",
"rv64",
"sparc",
"powerpc",
"loongarch64",
"s390x",
]
PWNDBG_SUPPORTED_ARCHITECTURES module-attribute
¤
PWNDBG_SUPPORTED_ARCHITECTURES: list[PWNDBG_SUPPORTED_ARCHITECTURES_TYPE] = (
list(get_args(PWNDBG_SUPPORTED_ARCHITECTURES_TYPE))
)
PWNLIB_ARCH_MAPPINGS module-attribute
¤
PWNLIB_ARCH_MAPPINGS = {
"x86-64": "amd64",
"i386": "i386",
"i8086": "none",
"mips": "mips",
"aarch64": "aarch64",
"arm": "arm",
"armcm": "thumb",
"rv32": "riscv32",
"rv64": "riscv64",
"powerpc": "powerpc",
"sparc": "sparc",
"loongarch64": "none",
"s390x": "s390",
}
PWNLIB_PLATFORM_MAPPINGS module-attribute
¤
Platform ¤
ArchAttribute ¤
Bases: Enum
Attributes:
-
MIPS_ISA_1
– -
MIPS_ISA_2
– -
MIPS_ISA_3
– -
MIPS_ISA_4
– -
MIPS_ISA_5
– -
MIPS_ISA_32
– -
MIPS_ISA_32R2
– -
MIPS_ISA_32R3
– -
MIPS_ISA_32R5
– -
MIPS_ISA_32R6
– -
MIPS_ISA_64
– -
MIPS_ISA_64R2
– -
MIPS_ISA_64R3
– -
MIPS_ISA_64R5
– -
MIPS_ISA_64R6
– -
MIPS_ISA_MICRO
– -
MIPS_ISA_NANO
– -
cs_mode
–
ArchDefinition dataclass
¤
ArchDefinition(
name: PWNDBG_SUPPORTED_ARCHITECTURES_TYPE,
ptrsize: int,
endian: Literal["little", "big"],
platform: Platform,
attributes: list[ArchAttribute] = list(),
)
Attributes:
-
name
(PWNDBG_SUPPORTED_ARCHITECTURES_TYPE
) – -
ptrsize
(int
) –Pointer size in bytes
-
endian
(Literal['little', 'big']
) – -
platform
(Platform
) – -
attributes
(list[ArchAttribute]
) –
attributes class-attribute
instance-attribute
¤
attributes: list[ArchAttribute] = field(default_factory=list)