]> sourceware.org Git - libabigail.git/commit
dwarf-reader: Create new corpus unconditionally
authorGiuliano Procida <gprocida@google.com>
Thu, 27 May 2021 08:53:03 +0000 (09:53 +0100)
committerDodji Seketeli <dodji@redhat.com>
Thu, 10 Jun 2021 15:53:03 +0000 (17:53 +0200)
commit5ccbfd4f2956d945e255e0ae48c3c4c711d2c977
tree42f25cc2cec7310c51764d412ced0cc90ca5dea9
parent519d7ce8e5773099fbfa0515d00397c008a72327
dwarf-reader: Create new corpus unconditionally

The DWARF reader appears to create a new corpus object only if one is
not already present. However, the only case where there can be
multiple corpora is when build_corpus_group_from_kernel_dist_under is
called and this function clears down the reader context, including the
current corpus, between reading ELF objects.

So it's clearer to just create a fresh corpus object unconditionally
in the DWARF reader.

* src/abg-dwarf-reader.cc (read_debug_info_into_corpus):
Create new corpus object unconditionally.

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