dwarf_expr: Add DWARFv5 OPs (#240)
authorWilliam Woodruff <william@yossarian.net>
Tue, 17 Sep 2019 12:17:55 +0000 (08:17 -0400)
committerEli Bendersky <eliben@users.noreply.github.com>
Tue, 17 Sep 2019 12:17:55 +0000 (05:17 -0700)
elftools/dwarf/dwarf_expr.py

index 6a63efbc1eab1f77a692c63b3bbc829ad56ad0c6..046416d922342d8518244ba094bce513f2ddbdf9 100644 (file)
@@ -70,6 +70,16 @@ DW_OP_name2opcode = dict(
     DW_OP_bit_piece=0x9d,
     DW_OP_implicit_value=0x9e,
     DW_OP_stack_value=0x9f,
+    DW_OP_implicit_pointer=0xa0,
+    DW_OP_addrx=0xa1,
+    DW_OP_constx=0xa2,
+    DW_OP_entry_value=0xa3,
+    DW_OP_const_type=0xa4,
+    DW_OP_regval_type=0xa5,
+    DW_OP_deref_type=0xa6,
+    DW_OP_xderef_type=0xa7,
+    DW_OP_convert=0xa8,
+    DW_OP_reinterpret=0xa9,
 )
 
 def _generate_dynamic_values(map, prefix, index_start, index_end, value_start):