mirror of
git://sourceware.org/git/libabigail.git
synced 2025-01-01 23:12:05 +00:00
The Git repository of the Libabigail Project
668116ed16
A corpus is made of several translation units; when reading the corpus, there is data (maintained in the reading context) that is relevant to all the translation units. But there is also data that is relevant to the current translation unit being read only; and data should cleared before starting to read the next translation unit. Otherwise, bad and subtle issues happen. This patch clears some per-TU data that I forgot to clear recently. The patch also does some code factorizing to increase maintainability. * src/abg-dwarf-reader.cc (read_context::die_type_map): New accessor for the two DIE->Type maps we have; the one of the main debug info section and the one of the alternate debug info section. (read_context::{associate_die_to_type, lookup_type_from_die_offset}): use the new die_type_map() accessor. (read_context::clear_per_translation_unit_data): Factorize this from build_translation_unit_and_add_to_ir(). Also, add code to clear the DIE->type map as well as the vectors of offsets of the types of the DIEs to canonicalize after the translation unit has been read. Signed-off-by: Dodji Seketeli <dodji@redhat.com> |
||
---|---|---|
doc | ||
include | ||
m4 | ||
scripts | ||
src | ||
tests | ||
tools | ||
.gitignore | ||
abigail.m4 | ||
AUTHORS | ||
ChangeLog | ||
COMMIT-LOG-GUIDELINES | ||
COMPILING | ||
config.h.in | ||
configure.ac | ||
CONTRIBUTING | ||
COPYING | ||
COPYING-LGPLV2 | ||
COPYING-LGPLV3 | ||
gen-changelog.py | ||
install-sh | ||
libabigail.pc.in | ||
ltmain.sh | ||
Makefile.am | ||
README | ||
test21-type-suppr-0.suppr | ||
test21-type-suppr-report-0.txt |
This is the Application Binary Interface Generic Analysis and Instrumentation Library. It aims at constructing, manipulating, serializing and de-serializing ABI-relevant artifacts. The set of artifacts that we are intersted is made of quantities like types, variable, fonctions and declarations of a given library or program. For a given library or program this set of quantities is called an ABI corpus. This library aims at (among other things) providing a way to comparing two ABI Corpuses, provide detailed information about their differences, and help build tools to infer interesting conclusions about these differences. You are welcome to contribute to this project after reading the files CONTRIBUTING and COMMIT-LOG-GUIDELINES files in the source tree. Communicating with the maintainers of this project -- including sending patches to be include to the source code -- happens via email at libabigail@sourceware.org.