dwarf/constants: add DW_LNCT_* constants (#362)
authorWilliam Woodruff <william@trailofbits.com>
Fri, 21 May 2021 13:20:12 +0000 (07:20 -0600)
committerGitHub <noreply@github.com>
Fri, 21 May 2021 13:20:12 +0000 (06:20 -0700)
These were introduced with DWARFv5 and are documented in S. 6.2.4.1.

elftools/dwarf/constants.py

index 558e8c6af642d32528679df4a179e00e79e84385..d1a86fc14027d49b2cfd347c20648a90a3843b35 100644 (file)
@@ -160,6 +160,15 @@ DW_LNE_set_discriminator = 0x04
 DW_LNE_lo_user = 0x80
 DW_LNE_hi_user = 0xff
 
+# Line program header content types
+#
+DW_LNCT_path = 0x01
+DW_LNCT_directory_index = 0x02
+DW_LNCT_timestamp = 0x03
+DW_LNCT_size = 0x04
+DW_LNCT_MD5 = 0x05
+DW_LNCT_lo_user = 0x2000
+DW_LNCT_hi_user = 0x3fff
 
 # Call frame instructions
 #