+++ /dev/null
-# Just a script for playing around with pyelftools during testing\r
-# please ignore it!\r
-#\r
-\r
-from elftools.dwarf.structs import DWARFStructs\r
-from elftools.dwarf.dwarfinfo import DWARFInfo\r
-\r
-\r
-ds = DWARFStructs(little_endian=True, dwarf_format=32)\r
-\r
-print ds.Dwarf_offset('x').parse('\x04\x01\x00\x00')\r
-print ds.Dwarf_initial_length('joe').parse('\xff\xff\xff\xff\x32\x00\x00\x00\x00\x00\x00\x00')\r
-\r
-\r
-print ds.Dwarf_sleb128('kwa').parse('\x81\x7f')\r
-\r
-s = ds.Dwarf_dw_form['DW_FORM_block']\r
-#~ s = ds.Dwarf_dw_form['DW_FORM_addr']\r
-\r
-print s.parse('\x04\x12\x13\x13\x16')\r
-#~ print s.parse('\x04\x00\x12\x13')\r