You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/constants.rs
+13-21Lines changed: 13 additions & 21 deletions
Original file line number
Diff line number
Diff line change
@@ -1059,10 +1059,22 @@ DwLnct(u16) {
1059
1059
DW_LNCT_hi_user = 0x3fff,
1060
1060
});
1061
1061
1062
+
dw!(
1063
+
/// Type codes for macro definitions in the `.debug_macinfo` section.
1064
+
///
1065
+
/// See Section 7.22, Figure 39 for DWARF 4.
1066
+
DwMacinfo(u8){
1067
+
DW_MACINFO_define = 0x01,
1068
+
DW_MACINFO_undef = 0x02,
1069
+
DW_MACINFO_start_file = 0x03,
1070
+
DW_MACINFO_end_file = 0x04,
1071
+
DW_MACINFO_vendor_ext = 0xff,
1072
+
});
1073
+
1062
1074
dw!(
1063
1075
/// The encodings for macro information entry types.
1064
1076
///
1065
-
/// See Section 7.23, Table 7.28.
1077
+
/// See Section 7.23, Table 7.28 for DWARF 5.
1066
1078
DwMacro(u8){
1067
1079
DW_MACRO_define = 0x01,
1068
1080
DW_MACRO_undef = 0x02,
@@ -1402,26 +1414,6 @@ impl DwEhPe {
1402
1414
}
1403
1415
}
1404
1416
1405
-
dw!(
1406
-
/// Type codes for macro definitions in the `.debug_macinfo section`.
1407
-
///
1408
-
/// `.debug_macinfo` is defined in Dwarf 2, 3, and 4. Dwarf 5 defines `.debug_macro` instead.
1409
-
/// See Section 7.22 (Macro Information) in the Dwarf 4 Standard.
1410
-
DwMacInfo(u8){
1411
-
// "The series of entries for a given compilation unit ends with an entry containing a type code of 0"
1412
-
DW_MACINFO_null = 0x00,
1413
-
// macro definition; uses two operands: line number (LEB128) and the defined macro symbol (null terminated string)
1414
-
DW_MACINFO_define = 0x01,
1415
-
// macro undefinition; uses two operands: line number (LEB128) and the undefined macro symbol (null terminated string)
1416
-
DW_MACINFO_undef = 0x02,
1417
-
// The start of a new source file inclusion. Uses two operands: line number (LEB128) and an index into the line number table of the compilation unit (LEB128).
1418
-
DW_MACINFO_start_file = 0x03,
1419
-
// The end of the current source file inclusion. Has no operands.
1420
-
DW_MACINFO_end_file = 0x04,
1421
-
// Vendor specific macro information directives. Has two operands: a constant (LEB128) and a null terminated string, whose meaning is vendor specific.
0 commit comments