[0/4] Fix duplicated corpora in corpus group

Message ID 87mt5vt3op.fsf@seketeli.org
Series Fix duplicated corpora in corpus group |


Dodji Seketeli Feb. 3, 2023, 10:59 a.m. UTC

Giuliano Procida brought to my attention that the ABI representation
emitted by abidw from current mainline wrongly duplicates every single
corpus in a corpus group represented in the ABIXML output.

The last patch of this series fixes the issue.

While testing that patch however, Giuliano noted other unrelated
issues with the code base.  The first three patches of the series
address those lateral problems.

This series is applied to the mainline.

Dodji Seketeli (4):
  fe-iface: Add missing virtual destructor
  dwarf-reader: Remove unused code
  corpus: Handle empty symbol table cases
  {dwarf,elf_based}-reader,writer: Avoid duplicating corpora in corpus_group

 include/abg-fe-iface.h      |  2 +-
 src/abg-corpus.cc           | 58 +++++++++++++++++++++++++------------
 src/abg-dwarf-reader.cc     | 44 ----------------------------
 src/abg-elf-based-reader.cc |  4 +--
 src/abg-writer.cc           | 45 ++++++++++++++++++++++++++--
 5 files changed, 85 insertions(+), 68 deletions(-)