From ed34c033a117847e6c64a4df3e4f01802991a50c Mon Sep 17 00:00:00 2001 From: Eli Bendersky Date: Sat, 17 Dec 2011 14:34:30 +0200 Subject: [PATCH] cleanup --- zd.py | 21 --------------------- 1 file changed, 21 deletions(-) delete mode 100644 zd.py diff --git a/zd.py b/zd.py deleted file mode 100644 index e5a4503..0000000 --- a/zd.py +++ /dev/null @@ -1,21 +0,0 @@ -# Just a script for playing around with pyelftools during testing -# please ignore it! -# - -from elftools.dwarf.structs import DWARFStructs -from elftools.dwarf.dwarfinfo import DWARFInfo - - -ds = DWARFStructs(little_endian=True, dwarf_format=32) - -print ds.Dwarf_offset('x').parse('\x04\x01\x00\x00') -print ds.Dwarf_initial_length('joe').parse('\xff\xff\xff\xff\x32\x00\x00\x00\x00\x00\x00\x00') - - -print ds.Dwarf_sleb128('kwa').parse('\x81\x7f') - -s = ds.Dwarf_dw_form['DW_FORM_block'] -#~ s = ds.Dwarf_dw_form['DW_FORM_addr'] - -print s.parse('\x04\x12\x13\x13\x16') -#~ print s.parse('\x04\x00\x12\x13') -- 2.30.2