mirror of
https://github.com/JakeHillion/drgn.git
synced 2024-12-26 02:25:36 +00:00
baba1ff3f0
Currently, programs can be created for three main use-cases: core dumps, the running kernel, and a running process. However, internally, the program memory, types, and symbols are pluggable. Expose that as a callback API, which makes it possible to use drgn in much more creative ways.
41 lines
536 B
Python
41 lines
536 B
Python
import enum
|
|
|
|
|
|
class ET(enum.IntEnum):
|
|
NONE = 0
|
|
REL = 1
|
|
EXEC = 2
|
|
DYN = 3
|
|
CORE = 4
|
|
|
|
|
|
class PT(enum.IntEnum):
|
|
NULL = 0
|
|
LOAD = 1
|
|
DYNAMIC = 2
|
|
INTERP = 3
|
|
NOTE = 4
|
|
SHLIB = 5
|
|
PHDR = 6
|
|
TLS = 7
|
|
|
|
|
|
class SHT(enum.IntEnum):
|
|
NULL = 0
|
|
PROGBITS = 1
|
|
SYMTAB = 2
|
|
STRTAB = 3
|
|
RELA = 4
|
|
HASH = 5
|
|
DYNAMIC = 6
|
|
NOTE = 7
|
|
NOBITS = 8
|
|
REL = 9
|
|
SHLIB = 10
|
|
DYNSYM = 11
|
|
INIT_ARRAY = 14
|
|
FINI_ARRAY = 15
|
|
PREINIT_ARRAY = 16
|
|
GROUP = 17
|
|
SYMTAB_SHNDX = 18
|