lief 0.16.5__cp38-cp38-win_amd64.whl → 0.17.0__cp38-cp38-win_amd64.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of lief might be problematic. Click here for more details.
- lief/ART/__init__.pyi +19 -18
- lief/COFF/__init__.pyi +708 -0
- lief/DEX/__init__.pyi +165 -159
- lief/ELF/__init__.pyi +2807 -2348
- lief/MachO/__init__.pyi +1877 -1457
- lief/OAT/__init__.pyi +153 -150
- lief/PE/__init__.pyi +2633 -2021
- lief/PE/unwind_aarch64/__init__.pyi +58 -0
- lief/PE/unwind_x64/__init__.pyi +53 -0
- lief/VDEX/__init__.pyi +10 -8
- lief/__init__.py +1 -1
- lief/__init__.pyi +280 -249
- lief/_lief.pyd +0 -0
- lief/assembly/__init__.pyi +17 -0
- lief/assembly/aarch64/__init__.pyi +11015 -8889
- lief/assembly/aarch64/operands/__init__.pyi +5 -5
- lief/assembly/arm/__init__.pyi +4521 -4491
- lief/assembly/ebpf/__init__.pyi +535 -481
- lief/assembly/mips/__init__.pyi +2926 -2888
- lief/assembly/powerpc/__init__.pyi +2958 -2846
- lief/assembly/riscv/__init__.pyi +14788 -13826
- lief/assembly/x86/__init__.pyi +24970 -19926
- lief/assembly/x86/operands/__init__.pyi +5 -5
- lief/dsc/__init__.pyi +31 -25
- lief/dwarf/__init__.pyi +160 -146
- lief/dwarf/editor/__init__.pyi +138 -0
- lief/dwarf/parameters/__init__.pyi +3 -3
- lief/dwarf/types/__init__.pyi +49 -49
- lief/logging/__init__.pyi +12 -12
- lief/objc/__init__.pyi +26 -26
- lief/pdb/__init__.pyi +272 -38
- lief/pdb/types/__init__.pyi +22 -22
- {lief-0.16.5.dist-info → lief-0.17.0.dist-info}/METADATA +1 -1
- lief-0.17.0.dist-info/RECORD +37 -0
- lief-0.16.5.dist-info/RECORD +0 -33
- {lief-0.16.5.dist-info → lief-0.17.0.dist-info}/WHEEL +0 -0
lief/dwarf/types/__init__.pyi
CHANGED
|
@@ -1,27 +1,54 @@
|
|
|
1
1
|
import enum
|
|
2
2
|
from typing import Iterator, Optional, Union as _Union
|
|
3
3
|
|
|
4
|
-
import lief
|
|
4
|
+
import lief.dwarf
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
class
|
|
8
|
-
class
|
|
7
|
+
class ClassLike(lief.dwarf.Type):
|
|
8
|
+
class Member:
|
|
9
9
|
@property
|
|
10
|
-
def
|
|
10
|
+
def name(self) -> str: ...
|
|
11
11
|
|
|
12
12
|
@property
|
|
13
|
-
def
|
|
13
|
+
def type(self) -> Optional[lief.dwarf.Type]: ...
|
|
14
14
|
|
|
15
15
|
@property
|
|
16
|
-
def
|
|
16
|
+
def is_external(self) -> bool: ...
|
|
17
|
+
|
|
18
|
+
@property
|
|
19
|
+
def is_declaration(self) -> bool: ...
|
|
20
|
+
|
|
21
|
+
@property
|
|
22
|
+
def offset(self) -> Optional[int]: ...
|
|
23
|
+
|
|
24
|
+
@property
|
|
25
|
+
def bit_offset(self) -> Optional[int]: ...
|
|
17
26
|
|
|
18
27
|
@property
|
|
19
|
-
def
|
|
28
|
+
def members(self) -> list[ClassLike.Member]: ...
|
|
29
|
+
|
|
30
|
+
def find_member(self, offset: int) -> Optional[ClassLike.Member]: ...
|
|
20
31
|
|
|
21
32
|
@property
|
|
22
|
-
def
|
|
33
|
+
def functions(self) -> Iterator[Optional[lief.dwarf.Function]]: ...
|
|
23
34
|
|
|
24
|
-
class
|
|
35
|
+
class Structure(ClassLike):
|
|
36
|
+
pass
|
|
37
|
+
|
|
38
|
+
class Class(ClassLike):
|
|
39
|
+
pass
|
|
40
|
+
|
|
41
|
+
class Union(ClassLike):
|
|
42
|
+
pass
|
|
43
|
+
|
|
44
|
+
class Packed(ClassLike):
|
|
45
|
+
pass
|
|
46
|
+
|
|
47
|
+
class Pointer(lief.dwarf.Type):
|
|
48
|
+
@property
|
|
49
|
+
def underlying_type(self) -> lief.dwarf.Type: ...
|
|
50
|
+
|
|
51
|
+
class Const(lief.dwarf.Type):
|
|
25
52
|
@property
|
|
26
53
|
def underlying_type(self) -> lief.dwarf.Type: ...
|
|
27
54
|
|
|
@@ -46,44 +73,34 @@ class Base(lief.dwarf.Type):
|
|
|
46
73
|
@property
|
|
47
74
|
def encoding(self) -> Base.ENCODING: ...
|
|
48
75
|
|
|
49
|
-
class
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
class ClassLike(lief.dwarf.Type):
|
|
53
|
-
class Member:
|
|
54
|
-
@property
|
|
55
|
-
def name(self) -> str: ...
|
|
56
|
-
|
|
57
|
-
@property
|
|
58
|
-
def type(self) -> Optional[lief.dwarf.Type]: ...
|
|
59
|
-
|
|
76
|
+
class Array(lief.dwarf.Type):
|
|
77
|
+
class size_info_t:
|
|
60
78
|
@property
|
|
61
|
-
def
|
|
79
|
+
def type(self) -> lief.dwarf.Type: ...
|
|
62
80
|
|
|
63
81
|
@property
|
|
64
|
-
def
|
|
82
|
+
def name(self) -> str: ...
|
|
65
83
|
|
|
66
84
|
@property
|
|
67
|
-
def
|
|
85
|
+
def size(self) -> int: ...
|
|
68
86
|
|
|
69
|
-
|
|
70
|
-
|
|
87
|
+
@property
|
|
88
|
+
def underlying_type(self) -> lief.dwarf.Type: ...
|
|
71
89
|
|
|
72
90
|
@property
|
|
73
|
-
def
|
|
91
|
+
def size_info(self) -> Array.size_info_t: ...
|
|
74
92
|
|
|
75
|
-
|
|
93
|
+
class Typedef(lief.dwarf.Type):
|
|
94
|
+
@property
|
|
95
|
+
def underlying_type(self) -> lief.dwarf.Type: ...
|
|
76
96
|
|
|
97
|
+
class Atomic(lief.dwarf.Type):
|
|
77
98
|
@property
|
|
78
|
-
def
|
|
99
|
+
def underlying_type(self) -> lief.dwarf.Type: ...
|
|
79
100
|
|
|
80
101
|
class Coarray(lief.dwarf.Type):
|
|
81
102
|
pass
|
|
82
103
|
|
|
83
|
-
class Const(lief.dwarf.Type):
|
|
84
|
-
@property
|
|
85
|
-
def underlying_type(self) -> lief.dwarf.Type: ...
|
|
86
|
-
|
|
87
104
|
class Dynamic(lief.dwarf.Type):
|
|
88
105
|
pass
|
|
89
106
|
|
|
@@ -100,13 +117,6 @@ class Immutable(lief.dwarf.Type):
|
|
|
100
117
|
class Interface(lief.dwarf.Type):
|
|
101
118
|
pass
|
|
102
119
|
|
|
103
|
-
class Packed(ClassLike):
|
|
104
|
-
pass
|
|
105
|
-
|
|
106
|
-
class Pointer(lief.dwarf.Type):
|
|
107
|
-
@property
|
|
108
|
-
def underlying_type(self) -> lief.dwarf.Type: ...
|
|
109
|
-
|
|
110
120
|
class PointerToMember(lief.dwarf.Type):
|
|
111
121
|
@property
|
|
112
122
|
def underlying_type(self) -> lief.dwarf.Type: ...
|
|
@@ -137,9 +147,6 @@ class Shared(lief.dwarf.Type):
|
|
|
137
147
|
class StringTy(lief.dwarf.Type):
|
|
138
148
|
pass
|
|
139
149
|
|
|
140
|
-
class Structure(ClassLike):
|
|
141
|
-
pass
|
|
142
|
-
|
|
143
150
|
class Subroutine(lief.dwarf.Type):
|
|
144
151
|
@property
|
|
145
152
|
def parameters(self) -> list[Optional[lief.dwarf.Parameter]]: ...
|
|
@@ -155,13 +162,6 @@ class Thrown(lief.dwarf.Type):
|
|
|
155
162
|
@property
|
|
156
163
|
def underlying_type(self) -> lief.dwarf.Type: ...
|
|
157
164
|
|
|
158
|
-
class Typedef(lief.dwarf.Type):
|
|
159
|
-
@property
|
|
160
|
-
def underlying_type(self) -> lief.dwarf.Type: ...
|
|
161
|
-
|
|
162
|
-
class Union(ClassLike):
|
|
163
|
-
pass
|
|
164
|
-
|
|
165
165
|
class Volatile(lief.dwarf.Type):
|
|
166
166
|
@property
|
|
167
167
|
def underlying_type(self) -> lief.dwarf.Type: ...
|
lief/logging/__init__.pyi
CHANGED
|
@@ -17,28 +17,28 @@ class LEVEL(enum.Enum):
|
|
|
17
17
|
|
|
18
18
|
INFO = 3
|
|
19
19
|
|
|
20
|
-
def critical(msg: str) -> None: ...
|
|
21
|
-
|
|
22
|
-
def debug(msg: str) -> None: ...
|
|
23
|
-
|
|
24
20
|
def disable() -> None: ...
|
|
25
21
|
|
|
26
22
|
def enable() -> None: ...
|
|
27
23
|
|
|
28
|
-
def
|
|
29
|
-
|
|
30
|
-
def err(msg: str) -> None: ...
|
|
24
|
+
def set_level(level: LEVEL) -> None: ...
|
|
31
25
|
|
|
32
26
|
def get_level() -> LEVEL: ...
|
|
33
27
|
|
|
34
|
-
def
|
|
28
|
+
def set_path(path: str) -> None: ...
|
|
35
29
|
|
|
36
30
|
def log(level: LEVEL, msg: str) -> None: ...
|
|
37
31
|
|
|
38
|
-
def
|
|
39
|
-
|
|
40
|
-
def set_level(level: LEVEL) -> None: ...
|
|
32
|
+
def debug(msg: str) -> None: ...
|
|
41
33
|
|
|
42
|
-
def
|
|
34
|
+
def info(msg: str) -> None: ...
|
|
43
35
|
|
|
44
36
|
def warn(msg: str) -> None: ...
|
|
37
|
+
|
|
38
|
+
def err(msg: str) -> None: ...
|
|
39
|
+
|
|
40
|
+
def critical(msg: str) -> None: ...
|
|
41
|
+
|
|
42
|
+
def enable_debug() -> None: ...
|
|
43
|
+
|
|
44
|
+
def reset() -> None: ...
|
lief/objc/__init__.pyi
CHANGED
|
@@ -1,6 +1,24 @@
|
|
|
1
1
|
from typing import Iterator, Optional, Union
|
|
2
2
|
|
|
3
3
|
|
|
4
|
+
class DeclOpt:
|
|
5
|
+
def __init__(self) -> None: ...
|
|
6
|
+
|
|
7
|
+
show_annotations: bool
|
|
8
|
+
|
|
9
|
+
class Metadata:
|
|
10
|
+
def to_decl(self, opt: DeclOpt = ...) -> str: ...
|
|
11
|
+
|
|
12
|
+
@property
|
|
13
|
+
def classes(self) -> Iterator[Optional[Class]]: ...
|
|
14
|
+
|
|
15
|
+
@property
|
|
16
|
+
def protocols(self) -> Iterator[Optional[Protocol]]: ...
|
|
17
|
+
|
|
18
|
+
def get_class(self, name: str) -> Optional[Class]: ...
|
|
19
|
+
|
|
20
|
+
def get_protocol(self, name: str) -> Optional[Protocol]: ...
|
|
21
|
+
|
|
4
22
|
class Class:
|
|
5
23
|
@property
|
|
6
24
|
def name(self) -> str: ...
|
|
@@ -28,11 +46,6 @@ class Class:
|
|
|
28
46
|
|
|
29
47
|
def to_decl(self, opt: DeclOpt = ...) -> str: ...
|
|
30
48
|
|
|
31
|
-
class DeclOpt:
|
|
32
|
-
def __init__(self) -> None: ...
|
|
33
|
-
|
|
34
|
-
show_annotations: bool
|
|
35
|
-
|
|
36
49
|
class IVar:
|
|
37
50
|
@property
|
|
38
51
|
def name(self) -> str: ...
|
|
@@ -40,18 +53,20 @@ class IVar:
|
|
|
40
53
|
@property
|
|
41
54
|
def mangled_type(self) -> str: ...
|
|
42
55
|
|
|
43
|
-
class
|
|
44
|
-
|
|
56
|
+
class Protocol:
|
|
57
|
+
@property
|
|
58
|
+
def mangled_name(self) -> str: ...
|
|
45
59
|
|
|
46
60
|
@property
|
|
47
|
-
def
|
|
61
|
+
def optional_methods(self) -> Iterator[Optional[Method]]: ...
|
|
48
62
|
|
|
49
63
|
@property
|
|
50
|
-
def
|
|
64
|
+
def required_methods(self) -> Iterator[Optional[Method]]: ...
|
|
51
65
|
|
|
52
|
-
|
|
66
|
+
@property
|
|
67
|
+
def properties(self) -> Iterator[Optional[Property]]: ...
|
|
53
68
|
|
|
54
|
-
def
|
|
69
|
+
def to_decl(self, opt: DeclOpt = ...) -> str: ...
|
|
55
70
|
|
|
56
71
|
class Method:
|
|
57
72
|
@property
|
|
@@ -72,18 +87,3 @@ class Property:
|
|
|
72
87
|
|
|
73
88
|
@property
|
|
74
89
|
def attribute(self) -> str: ...
|
|
75
|
-
|
|
76
|
-
class Protocol:
|
|
77
|
-
@property
|
|
78
|
-
def mangled_name(self) -> str: ...
|
|
79
|
-
|
|
80
|
-
@property
|
|
81
|
-
def optional_methods(self) -> Iterator[Optional[Method]]: ...
|
|
82
|
-
|
|
83
|
-
@property
|
|
84
|
-
def required_methods(self) -> Iterator[Optional[Method]]: ...
|
|
85
|
-
|
|
86
|
-
@property
|
|
87
|
-
def properties(self) -> Iterator[Optional[Property]]: ...
|
|
88
|
-
|
|
89
|
-
def to_decl(self, opt: DeclOpt = ...) -> str: ...
|
lief/pdb/__init__.pyi
CHANGED
|
@@ -1,74 +1,234 @@
|
|
|
1
1
|
import enum
|
|
2
|
+
import os
|
|
2
3
|
from typing import Iterator, Optional, Union
|
|
3
4
|
|
|
4
5
|
from . import types as types
|
|
5
6
|
import lief
|
|
6
7
|
|
|
7
8
|
|
|
8
|
-
|
|
9
|
-
@property
|
|
10
|
-
def module_name(self) -> str: ...
|
|
9
|
+
def load(path: str) -> Optional[DebugInfo]: ...
|
|
11
10
|
|
|
12
|
-
|
|
13
|
-
|
|
11
|
+
class BuildMetadata:
|
|
12
|
+
class LANG(enum.Enum):
|
|
13
|
+
C = 0
|
|
14
14
|
|
|
15
|
-
|
|
16
|
-
def sources(self) -> Iterator[str]: ...
|
|
15
|
+
CPP = 1
|
|
17
16
|
|
|
18
|
-
|
|
19
|
-
def functions(self) -> Iterator[Optional[Function]]: ...
|
|
17
|
+
FORTRAN = 2
|
|
20
18
|
|
|
21
|
-
|
|
22
|
-
@property
|
|
23
|
-
def age(self) -> int: ...
|
|
19
|
+
MASM = 3
|
|
24
20
|
|
|
25
|
-
|
|
26
|
-
def guid(self) -> str: ...
|
|
21
|
+
PASCAL_LANG = 4
|
|
27
22
|
|
|
28
|
-
|
|
29
|
-
def from_file(filepath: str) -> Optional[DebugInfo]: ...
|
|
23
|
+
BASIC = 5
|
|
30
24
|
|
|
31
|
-
|
|
25
|
+
COBOL = 6
|
|
32
26
|
|
|
33
|
-
|
|
27
|
+
LINK = 7
|
|
34
28
|
|
|
35
|
-
|
|
36
|
-
def public_symbols(self) -> Iterator[Optional[PublicSymbol]]: ...
|
|
29
|
+
CVTRES = 8
|
|
37
30
|
|
|
38
|
-
|
|
39
|
-
def compilation_units(self) -> Iterator[Optional[CompilationUnit]]: ...
|
|
31
|
+
CVTPGD = 9
|
|
40
32
|
|
|
41
|
-
|
|
42
|
-
def types(self) -> Iterator[Optional[Type]]: ...
|
|
33
|
+
CSHARP = 10
|
|
43
34
|
|
|
44
|
-
|
|
45
|
-
@property
|
|
46
|
-
def name(self) -> str: ...
|
|
35
|
+
VB = 11
|
|
47
36
|
|
|
48
|
-
|
|
49
|
-
|
|
37
|
+
ILASM = 12
|
|
38
|
+
|
|
39
|
+
JAVA = 13
|
|
40
|
+
|
|
41
|
+
JSCRIPT = 14
|
|
42
|
+
|
|
43
|
+
MSIL = 15
|
|
44
|
+
|
|
45
|
+
HLSL = 16
|
|
46
|
+
|
|
47
|
+
OBJC = 17
|
|
48
|
+
|
|
49
|
+
OBJCPP = 18
|
|
50
|
+
|
|
51
|
+
SWIFT = 19
|
|
52
|
+
|
|
53
|
+
ALIASOBJ = 20
|
|
54
|
+
|
|
55
|
+
RUST = 21
|
|
56
|
+
|
|
57
|
+
GO = 22
|
|
58
|
+
|
|
59
|
+
UNKNOWN = 255
|
|
60
|
+
|
|
61
|
+
class CPU(enum.Enum):
|
|
62
|
+
INTEL_8080 = 0
|
|
63
|
+
|
|
64
|
+
INTEL_8086 = 1
|
|
65
|
+
|
|
66
|
+
INTEL_80286 = 2
|
|
67
|
+
|
|
68
|
+
INTEL_80386 = 3
|
|
69
|
+
|
|
70
|
+
INTEL_80486 = 4
|
|
71
|
+
|
|
72
|
+
PENTIUM = 5
|
|
73
|
+
|
|
74
|
+
PENTIUMPRO = 6
|
|
75
|
+
|
|
76
|
+
PENTIUM3 = 7
|
|
77
|
+
|
|
78
|
+
MIPS = 16
|
|
79
|
+
|
|
80
|
+
MIPS16 = 17
|
|
81
|
+
|
|
82
|
+
MIPS32 = 18
|
|
83
|
+
|
|
84
|
+
MIPS64 = 19
|
|
85
|
+
|
|
86
|
+
MIPSI = 20
|
|
87
|
+
|
|
88
|
+
MIPSII = 21
|
|
89
|
+
|
|
90
|
+
MIPSIII = 22
|
|
91
|
+
|
|
92
|
+
MIPSIV = 23
|
|
93
|
+
|
|
94
|
+
MIPSV = 24
|
|
95
|
+
|
|
96
|
+
M68000 = 32
|
|
97
|
+
|
|
98
|
+
M68010 = 33
|
|
99
|
+
|
|
100
|
+
M68020 = 34
|
|
101
|
+
|
|
102
|
+
M68030 = 35
|
|
103
|
+
|
|
104
|
+
M68040 = 36
|
|
105
|
+
|
|
106
|
+
ALPHA = 48
|
|
107
|
+
|
|
108
|
+
ALPHA_21164 = 49
|
|
109
|
+
|
|
110
|
+
ALPHA_21164A = 50
|
|
111
|
+
|
|
112
|
+
ALPHA_21264 = 51
|
|
113
|
+
|
|
114
|
+
ALPHA_21364 = 52
|
|
115
|
+
|
|
116
|
+
PPC601 = 64
|
|
117
|
+
|
|
118
|
+
PPC603 = 65
|
|
119
|
+
|
|
120
|
+
PPC604 = 66
|
|
121
|
+
|
|
122
|
+
PPC620 = 67
|
|
123
|
+
|
|
124
|
+
PPCFP = 68
|
|
125
|
+
|
|
126
|
+
PPCBE = 69
|
|
127
|
+
|
|
128
|
+
SH3 = 80
|
|
129
|
+
|
|
130
|
+
SH3E = 81
|
|
131
|
+
|
|
132
|
+
SH3DSP = 82
|
|
133
|
+
|
|
134
|
+
SH4 = 83
|
|
135
|
+
|
|
136
|
+
SHMEDIA = 84
|
|
137
|
+
|
|
138
|
+
ARM3 = 96
|
|
139
|
+
|
|
140
|
+
ARM4 = 97
|
|
141
|
+
|
|
142
|
+
ARM4T = 98
|
|
143
|
+
|
|
144
|
+
ARM5 = 99
|
|
145
|
+
|
|
146
|
+
ARM5T = 100
|
|
147
|
+
|
|
148
|
+
ARM6 = 101
|
|
149
|
+
|
|
150
|
+
ARM_XMAC = 102
|
|
151
|
+
|
|
152
|
+
ARM_WMMX = 103
|
|
153
|
+
|
|
154
|
+
ARM7 = 104
|
|
155
|
+
|
|
156
|
+
OMNI = 112
|
|
157
|
+
|
|
158
|
+
IA64 = 128
|
|
159
|
+
|
|
160
|
+
IA64_2 = 129
|
|
161
|
+
|
|
162
|
+
CEE = 144
|
|
163
|
+
|
|
164
|
+
AM33 = 160
|
|
165
|
+
|
|
166
|
+
M32R = 176
|
|
167
|
+
|
|
168
|
+
TRICORE = 192
|
|
169
|
+
|
|
170
|
+
X64 = 208
|
|
171
|
+
|
|
172
|
+
EBC = 224
|
|
173
|
+
|
|
174
|
+
THUMB = 240
|
|
175
|
+
|
|
176
|
+
ARMNT = 244
|
|
177
|
+
|
|
178
|
+
ARM64 = 246
|
|
179
|
+
|
|
180
|
+
HYBRID_X86ARM64 = 247
|
|
181
|
+
|
|
182
|
+
ARM64EC = 248
|
|
183
|
+
|
|
184
|
+
ARM64X = 249
|
|
185
|
+
|
|
186
|
+
D3D11_SHADER = 256
|
|
187
|
+
|
|
188
|
+
UNKNOWN = 255
|
|
189
|
+
|
|
190
|
+
class version_t:
|
|
191
|
+
major: int
|
|
192
|
+
|
|
193
|
+
minor: int
|
|
194
|
+
|
|
195
|
+
build: int
|
|
196
|
+
|
|
197
|
+
qfe: int
|
|
198
|
+
|
|
199
|
+
class build_info_t:
|
|
200
|
+
cwd: str
|
|
201
|
+
|
|
202
|
+
build_tool: str
|
|
203
|
+
|
|
204
|
+
source_file: str
|
|
205
|
+
|
|
206
|
+
pdb: str
|
|
207
|
+
|
|
208
|
+
command_line: str
|
|
50
209
|
|
|
51
210
|
@property
|
|
52
|
-
def
|
|
211
|
+
def frontend_version(self) -> BuildMetadata.version_t: ...
|
|
53
212
|
|
|
54
213
|
@property
|
|
55
|
-
def
|
|
214
|
+
def backend_version(self) -> BuildMetadata.version_t: ...
|
|
56
215
|
|
|
57
216
|
@property
|
|
58
|
-
def
|
|
217
|
+
def version(self) -> str: ...
|
|
59
218
|
|
|
60
|
-
class PublicSymbol:
|
|
61
219
|
@property
|
|
62
|
-
def
|
|
220
|
+
def language(self) -> BuildMetadata.LANG: ...
|
|
63
221
|
|
|
64
222
|
@property
|
|
65
|
-
def
|
|
223
|
+
def target_cpu(self) -> BuildMetadata.CPU: ...
|
|
66
224
|
|
|
67
225
|
@property
|
|
68
|
-
def
|
|
226
|
+
def build_info(self) -> BuildMetadata.build_info_t | None: ...
|
|
69
227
|
|
|
70
228
|
@property
|
|
71
|
-
def
|
|
229
|
+
def env(self) -> list[str]: ...
|
|
230
|
+
|
|
231
|
+
def __str__(self) -> str: ...
|
|
72
232
|
|
|
73
233
|
class Type:
|
|
74
234
|
class KIND(enum.Enum):
|
|
@@ -99,4 +259,78 @@ class Type:
|
|
|
99
259
|
@property
|
|
100
260
|
def kind(self) -> Type.KIND: ...
|
|
101
261
|
|
|
102
|
-
|
|
262
|
+
class DebugInfo(lief.DebugInfo):
|
|
263
|
+
@property
|
|
264
|
+
def age(self) -> int: ...
|
|
265
|
+
|
|
266
|
+
@property
|
|
267
|
+
def guid(self) -> str: ...
|
|
268
|
+
|
|
269
|
+
@staticmethod
|
|
270
|
+
def from_file(filepath: Union[str | os.PathLike]) -> Optional[DebugInfo]: ...
|
|
271
|
+
|
|
272
|
+
def find_type(self, name: str) -> Optional[Type]: ...
|
|
273
|
+
|
|
274
|
+
def find_public_symbol(self, name: str) -> Optional[PublicSymbol]: ...
|
|
275
|
+
|
|
276
|
+
@property
|
|
277
|
+
def public_symbols(self) -> Iterator[Optional[PublicSymbol]]: ...
|
|
278
|
+
|
|
279
|
+
@property
|
|
280
|
+
def compilation_units(self) -> Iterator[Optional[CompilationUnit]]: ...
|
|
281
|
+
|
|
282
|
+
@property
|
|
283
|
+
def types(self) -> Iterator[Optional[Type]]: ...
|
|
284
|
+
|
|
285
|
+
def __str__(self) -> str: ...
|
|
286
|
+
|
|
287
|
+
class PublicSymbol:
|
|
288
|
+
@property
|
|
289
|
+
def name(self) -> str: ...
|
|
290
|
+
|
|
291
|
+
@property
|
|
292
|
+
def section_name(self) -> str: ...
|
|
293
|
+
|
|
294
|
+
@property
|
|
295
|
+
def RVA(self) -> int: ...
|
|
296
|
+
|
|
297
|
+
@property
|
|
298
|
+
def demangled_name(self) -> str: ...
|
|
299
|
+
|
|
300
|
+
def __str__(self) -> str: ...
|
|
301
|
+
|
|
302
|
+
class CompilationUnit:
|
|
303
|
+
@property
|
|
304
|
+
def module_name(self) -> str: ...
|
|
305
|
+
|
|
306
|
+
@property
|
|
307
|
+
def object_filename(self) -> str: ...
|
|
308
|
+
|
|
309
|
+
@property
|
|
310
|
+
def sources(self) -> Iterator[str]: ...
|
|
311
|
+
|
|
312
|
+
@property
|
|
313
|
+
def functions(self) -> Iterator[Optional[Function]]: ...
|
|
314
|
+
|
|
315
|
+
@property
|
|
316
|
+
def build_metadata(self) -> Optional[BuildMetadata]: ...
|
|
317
|
+
|
|
318
|
+
def __str__(self) -> str: ...
|
|
319
|
+
|
|
320
|
+
class Function:
|
|
321
|
+
@property
|
|
322
|
+
def name(self) -> str: ...
|
|
323
|
+
|
|
324
|
+
@property
|
|
325
|
+
def RVA(self) -> int: ...
|
|
326
|
+
|
|
327
|
+
@property
|
|
328
|
+
def code_size(self) -> int: ...
|
|
329
|
+
|
|
330
|
+
@property
|
|
331
|
+
def section_name(self) -> str: ...
|
|
332
|
+
|
|
333
|
+
@property
|
|
334
|
+
def debug_location(self) -> lief.debug_location_t: ...
|
|
335
|
+
|
|
336
|
+
def __str__(self) -> str: ...
|
lief/pdb/types/__init__.pyi
CHANGED
|
@@ -1,25 +1,15 @@
|
|
|
1
1
|
from typing import Iterator, Optional, Union as _Union
|
|
2
2
|
|
|
3
|
-
import lief
|
|
3
|
+
import lief.pdb
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
class
|
|
6
|
+
class Simple(lief.pdb.Type):
|
|
7
7
|
pass
|
|
8
8
|
|
|
9
|
-
class
|
|
10
|
-
@property
|
|
11
|
-
def name(self) -> str: ...
|
|
12
|
-
|
|
13
|
-
@property
|
|
14
|
-
def type(self) -> Optional[lief.pdb.Type]: ...
|
|
15
|
-
|
|
16
|
-
@property
|
|
17
|
-
def field_offset(self) -> int: ...
|
|
18
|
-
|
|
19
|
-
class BitField(lief.pdb.Type):
|
|
9
|
+
class Array(lief.pdb.Type):
|
|
20
10
|
pass
|
|
21
11
|
|
|
22
|
-
class
|
|
12
|
+
class BitField(lief.pdb.Type):
|
|
23
13
|
pass
|
|
24
14
|
|
|
25
15
|
class ClassLike(lief.pdb.Type):
|
|
@@ -38,19 +28,35 @@ class ClassLike(lief.pdb.Type):
|
|
|
38
28
|
@property
|
|
39
29
|
def size(self) -> int: ...
|
|
40
30
|
|
|
41
|
-
class
|
|
31
|
+
class Class(ClassLike):
|
|
42
32
|
pass
|
|
43
33
|
|
|
44
|
-
class
|
|
34
|
+
class Structure(ClassLike):
|
|
45
35
|
pass
|
|
46
36
|
|
|
47
37
|
class Interface(ClassLike):
|
|
48
38
|
pass
|
|
49
39
|
|
|
40
|
+
class Attribute:
|
|
41
|
+
@property
|
|
42
|
+
def name(self) -> str: ...
|
|
43
|
+
|
|
44
|
+
@property
|
|
45
|
+
def type(self) -> Optional[lief.pdb.Type]: ...
|
|
46
|
+
|
|
47
|
+
@property
|
|
48
|
+
def field_offset(self) -> int: ...
|
|
49
|
+
|
|
50
50
|
class Method:
|
|
51
51
|
@property
|
|
52
52
|
def name(self) -> str: ...
|
|
53
53
|
|
|
54
|
+
class Enum(lief.pdb.Type):
|
|
55
|
+
pass
|
|
56
|
+
|
|
57
|
+
class Function(lief.pdb.Type):
|
|
58
|
+
pass
|
|
59
|
+
|
|
54
60
|
class Modifier(lief.pdb.Type):
|
|
55
61
|
@property
|
|
56
62
|
def underlying_type(self) -> Optional[lief.pdb.Type]: ...
|
|
@@ -59,11 +65,5 @@ class Pointer(lief.pdb.Type):
|
|
|
59
65
|
@property
|
|
60
66
|
def underlying_type(self) -> Optional[lief.pdb.Type]: ...
|
|
61
67
|
|
|
62
|
-
class Simple(lief.pdb.Type):
|
|
63
|
-
pass
|
|
64
|
-
|
|
65
|
-
class Structure(ClassLike):
|
|
66
|
-
pass
|
|
67
|
-
|
|
68
68
|
class Union(ClassLike):
|
|
69
69
|
pass
|