Changeset 558cab8 in rtems-tools for rtemstoolkit/rld-elf.cpp


Ignore:
Timestamp:
May 8, 2018, 5:09:38 AM (18 months ago)
Author:
Chris Johns <chrisj@…>
Branches:
master
Children:
fb987e8
Parents:
1a89c3d
git-author:
Chris Johns <chrisj@…> (05/08/18 05:09:38)
git-committer:
Chris Johns <chrisj@…> (06/15/18 05:54:25)
Message:

rtemstoolkit: Add libdwarf C++ interface.

Provide a C++ interface to libdwarf to:

  • Manage DWARF debug data
  • Manage CU
  • Manage DIE
  • Handle CU line addresses
  • Handle CU source files

Update #3417

File:
1 edited

Legend:

Unmodified
Added
Removed
  • rtemstoolkit/rld-elf.cpp

    r1a89c3d r558cab8  
    422422    file::file ()
    423423      : fd_ (-1),
     424        refs (0),
    424425        archive (false),
    425426        writable (false),
     
    436437    {
    437438      end ();
     439    }
     440
     441    void
     442    file::reference_obtain ()
     443    {
     444      ++refs;
     445    }
     446
     447    void
     448    file::reference_release ()
     449    {
     450      --refs;
    438451    }
    439452
     
    552565    file::end ()
    553566    {
     567      if (refs > 0)
     568        throw rld::error ("References still held", "elf:file:end: " + name_);
     569
    554570      if (elf_)
    555571      {
Note: See TracChangeset for help on using the changeset viewer.