Skip to content

info ¤

Runs a few useful commands which are available under "info".

Classes:

Functions:

Section ¤

Bases: NamedTuple

Attributes:

objfile instance-attribute ¤

objfile: str

section instance-attribute ¤

section: str

start instance-attribute ¤

start: int

size instance-attribute ¤

size: int

offset instance-attribute ¤

offset: int

proc_mappings ¤

proc_mappings() -> str

auxv ¤

auxv() -> str

files ¤

files() -> str

iter_sections ¤

iter_sections() -> Iterator[Section]

Parse sections from GDB maintenance info target-sections.

Example output: From '/bin/nginx', file type elf64-x86-64: [0] 0x00000350->0x00000390 at 0x00000350: .note.gnu.property ALLOC LOAD READONLY DATA HAS_CONTENTS Start: 0x558fb29f4350, End: 0x558fb29f4390, Owner token: 0xaaaad5b30c50 [1] 0x00000390->0x000003b4 at 0x00000390: .note.gnu.build-id ALLOC LOAD READONLY DATA HAS_CONTENTS Start: 0x558fb29f4390, End: 0x558fb29f43b4, Owner token: 0xaaaad5b30c50

sections ¤

sections() -> tuple[Section, ...]