Fix typo when referencing DW_FORM_ref_addr (#321)
authorGabriel-Andrew Pollo Guilbert <gabrielpolloguilbert@gmail.com>
Wed, 8 Jul 2020 00:06:59 +0000 (20:06 -0400)
committerGitHub <noreply@github.com>
Wed, 8 Jul 2020 00:06:59 +0000 (17:06 -0700)
elftools/dwarf/die.py
elftools/dwarf/dwarfinfo.py

index 455a2e378ec5cd25b54a37f4d8d6c95e198018ea..dd9d5925802477521f7f799ee986a81c9355e3cf 100755 (executable)
@@ -110,7 +110,7 @@ class DIE(object):
                          'DW_FORM_ref8', 'DW_FORM_ref'):
             refaddr = self.cu.cu_offset + attr.raw_value
             return self.cu.get_DIE_from_refaddr(refaddr)
-        elif attr.form in ('DW_FORM_refaddr'):
+        elif attr.form in ('DW_FORM_ref_addr'):
             return self.cu.dwarfinfo.get_DIE_from_refaddr(attr.raw_value)
         elif attr.form in ('DW_FORM_ref_sig8'):
             # Implement search type units for matching signature
index 896c2929ba78fbb9b93094bf6b60a7154076621a..103fc491dab5af22cbeebcde9d9acc1bca89b589 100644 (file)
@@ -147,7 +147,7 @@ class DWARFInfo(object):
             .debug_info section.
 
             refaddr:
-                Either a refaddr of a DIE (possibly from a DW_FORM_refaddr
+                Either a refaddr of a DIE (possibly from a DW_FORM_ref_addr
                 attribute) or the section offset of a CU (possibly from an
                 aranges table).