Skip to content

COFF (probably) file with DWARF2 debug info #5

@GoogleCodeExporter

Description

@GoogleCodeExporter
I am not sure if the problem is a bug or a  missing feature.

Example of the file 
https://www.assembla.com/spaces/OpenTI/documents/d0GJsCo2mr4lM9eJe5cbLA/download
/d0GJsCo2mr4lM9eJe5cbLA

The file is not recognized as ELF file and fails. Is it COFF ?  The debug 
information is DWARF2. XML file in the archive is output of the object file 
parser which comes with the toolchain.

Using the same compiler I generated ELF object file 
https://www.assembla.com/spaces/OpenTI/documents/dpkxLEo2Cr4iSjeJe5cbCb/download
/dpkxLEo2Cr4iSjeJe5cbCb

For the OBJ file dwarfviewer complains (see below). Utility readelf recognizes 
the format, but how I can access debug info?

Thank you.

<pre>
Traceback (most recent call last):
  File "./dwarfviewer.py", line 14, in <module>
    dwarf = DWARF(file_path)
  File "../bintools/dwarf/__init__.py", line 35, in __init__
    self.info = DebugInfoLoader(self)
  File "../bintools/dwarf/info.py", line 168, in __init__
    cu = CU(dwarf, overall_offset)
  File "../bintools/dwarf/info.py", line 110, in __init__
    die = DIE(dwarf, self, abbrevs, level)
  File "../bintools/dwarf/info.py", line 59, in __init__
    if DW_AT[name_id] in ['location', 'data_member_location']:
KeyError: 8203
</pre>

Original issue reported on code.google.com by larytet@gmail.com on 18 Feb 2011 at 2:32

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions