]> sourceware.org Git - libabigail.git/commit
Don't add empty translation unit to corpus
authorDodji Seketeli <dodji@redhat.com>
Wed, 28 Jun 2017 13:01:50 +0000 (15:01 +0200)
committerDodji Seketeli <dodji@redhat.com>
Tue, 4 Jul 2017 14:47:38 +0000 (16:47 +0200)
commit91e3240231f2e352991c9462226a8a279a4b2e79
tree0ce8952b2b9162ed26f49a6bcc214702b9ffc255
parent122b95daff2181bde5ca8c46c36200771da3890b
Don't add empty translation unit to corpus

In debug info, some translation units are known to be empty because
they don't carry any DIE.  It's thus useless to add those translation
units to the ABI corpus.

Note that in some packages like gcc and glibc (in Fedora 25) the same
empty translation unit can be present in the debug info more than
once.  This violates a Libabigail invariant that asserts that a given
translation unit (designated by its path) shall be present only once
in the debug info.

* src/abg-dwarf-reader.cc (build_translation_unit_and_add_to_ir):
A translation unit DIE that has no child DIE shall not be added to
the current ABI corpus.

Signed-off-by: Dodji Seketeli <dodji@redhat.com>
src/abg-dwarf-reader.cc
This page took 0.031192 seconds and 5 git commands to generate.