[DynInst_API:] Commit: library changes


Date: Thu, 13 Sep 2012 20:45:22 -0500
From: Andrew Bernat <bernat@xxxxxxxxxxx>
Subject: [DynInst_API:] Commit: library changes
As background, we have been working on cleaning and separating our dwarf and elf handling code. For example, Stackwalker wants both elf and dwarf, but ProcControl only needs elf (and only on elf platforms). Previously, each component that required dwarf or elf parsing had a separate copy of that code, leading to duplication. This commit moves that code to two new libraries: libdynElf and libdynDwarf. These correspond with the new source directories elf and dwarf, respectively. 

I've also moved the elf SymLite implementation to a separate library that depends on libdynElf, again removing the code duplication. 

This has been tested on my machine and should work on others, but if you are interested in the 8.0 beta please give it a pull (from git.dyninst.org/pub/dyninst) and test it. 

I apologize for the increase in number of libraries, but we believe it's the best way to encapsulate the dwarf and elf handling code. In most cases users will never notice this. If you get undefined symbol errors, add -ldynElf and -ldynDwarf to your link lines. 

Drew

P.S. Also, bugfixes in the tests and updates to the configure script. The new dwarf parsing requires a more recent version of libdwarf, and we test for it explicitly instead of having compile errors. 




[← Prev in Thread] Current Thread [Next in Thread→]
  • [DynInst_API:] Commit: library changes, Andrew Bernat <=