@@ -33,35 +33,54 @@ void init_PE_Debug_class(py::module& m) {
33
33
34
34
.def_property (" characteristics" ,
35
35
static_cast <getter_t <uint32_t >>(&Debug::characteristics),
36
- static_cast <setter_t <uint32_t >>(&Debug::characteristics))
36
+ static_cast <setter_t <uint32_t >>(&Debug::characteristics),
37
+ " Reserved should be 0" )
37
38
38
39
.def_property (" timestamp" ,
39
40
static_cast <getter_t <uint32_t >>(&Debug::timestamp),
40
- static_cast <setter_t <uint32_t >>(&Debug::timestamp))
41
+ static_cast <setter_t <uint32_t >>(&Debug::timestamp),
42
+ " The time and date that the debug data was created." )
41
43
42
44
.def_property (" major_version" ,
43
45
static_cast <getter_t <uint16_t >>(&Debug::major_version),
44
- static_cast <setter_t <uint16_t >>(&Debug::major_version))
46
+ static_cast <setter_t <uint16_t >>(&Debug::major_version),
47
+ " The major version number of the debug data format." )
45
48
46
49
.def_property (" minor_version" ,
47
50
static_cast <getter_t <uint16_t >>(&Debug::minor_version),
48
- static_cast <setter_t <uint16_t >>(&Debug::minor_version))
51
+ static_cast <setter_t <uint16_t >>(&Debug::minor_version),
52
+ " The minor version number of the debug data format." )
49
53
50
54
.def_property (" type" ,
51
55
static_cast <getter_t <DEBUG_TYPES>>(&Debug::type),
52
- static_cast <setter_t <DEBUG_TYPES>>(&Debug::type))
56
+ static_cast <setter_t <DEBUG_TYPES>>(&Debug::type),
57
+ " The format (" RST_CLASS_REF (lief.PE .DEBUG_TYPES ) " ) of the debugging information" )
53
58
54
59
.def_property (" sizeof_data" ,
55
60
static_cast <getter_t <uint32_t >>(&Debug::sizeof_data),
56
- static_cast <setter_t <uint32_t >>(&Debug::sizeof_data))
61
+ static_cast <setter_t <uint32_t >>(&Debug::sizeof_data),
62
+ " Size of the debug data" )
57
63
58
64
.def_property (" addressof_rawdata" ,
59
65
static_cast <getter_t <uint32_t >>(&Debug::addressof_rawdata),
60
- static_cast <setter_t <uint32_t >>(&Debug::addressof_rawdata))
66
+ static_cast <setter_t <uint32_t >>(&Debug::addressof_rawdata),
67
+ " Address of the debug data relative to the image base" )
61
68
62
69
.def_property (" pointerto_rawdata" ,
63
70
static_cast <getter_t <uint32_t >>(&Debug::pointerto_rawdata),
64
- static_cast <setter_t <uint32_t >>(&Debug::pointerto_rawdata))
71
+ static_cast <setter_t <uint32_t >>(&Debug::pointerto_rawdata),
72
+ " File offset of the debug data" )
73
+
74
+ .def_property_readonly (" has_code_view" ,
75
+ &Debug::has_code_view,
76
+ " Whether or not a code view is present" )
77
+
78
+ .def_property_readonly (" code_view" ,
79
+ static_cast <CodeView& (Debug::*)(void )>(&Debug::code_view),
80
+ " Return an object which subclass " RST_CLASS_REF (lief.PE .CodeView ) " representing the code view \n\n "
81
+ " The subclassed object can be one of: \n\n "
82
+ " * " RST_CLASS_REF (lief.PE .CodeViewPDB ) " \n " ,
83
+ py::return_value_policy::reference)
65
84
66
85
.def (" __eq__" , &Debug::operator ==)
67
86
.def (" __ne__" , &Debug::operator !=)
0 commit comments