[0/5] CTF front-end Bug Fixing and improvement

Message ID 20221117034305.184864-1-guillermo.e.martinez@oracle.com
Headers
Series CTF front-end Bug Fixing and improvement |

Message

Guillermo E. Martinez Nov. 17, 2022, 3:43 a.m. UTC
  Hello,

These patch series are bug fixing and some improvements for
CTF front-end found using libabigail tools as follows:

    abidw --ctf  --exported-interfaces-only elf_{binary,library} > ctf.abi
    abidw  --exported-interfaces-only elf_{binary,library} > dwarf.abi
    abidiff {ctf,dwarf}.abi

ELF binaries/libraries included in packages:

   + libgtk
   + libelf
   + emacs
   + vim
   + grep
   + coreutils
   + Linux Kernel 5.16
   + curl
   + glib
   + zlib
   + findutils
   + recutils
   + poke
   + php
   + lzma
   + bzip2
   + m4
   + and more ...

The patch series rely on the functionality provided in:

   https://sourceware.org/pipermail/libabigail/2022q4/004911.html

Worked in branch: users/dodji/front-end.

Please if you have comments don't hesitate to post it.  I'll really
appreciate them!

Kind regards,
guillermo

Guillermo E. Martinez (5):
  ctf-front-end: Set alignment-in-bits property to 0
  ctf-front-end: Fix size and name for underlying types
  ctf-front-end: Strip qualification from a qualified array type
  ctf-front-end: Fix representation for multidimensional array type
  ctf-front-end: Fix array size representation

 src/abg-ctf-reader.cc                         | 214 +++++++++++++-----
 tests/data/Makefile.am                        |  15 ++
 .../test-diff-pkg-ctf/dirpkg-3-report-1.txt   |   1 -
 .../test-diff-pkg-ctf/dirpkg-3-report-2.txt   |   1 -
 .../gmp-6.x.x86_64-report-0.txt               |   1 +
 .../test-read-ctf/PR27700/test-PR27700.abi    |   6 +-
 tests/data/test-read-ctf/test-PR26568-1.o.abi |  12 +-
 tests/data/test-read-ctf/test-PR26568-2.o.abi |  10 +-
 .../test-ambiguous-struct-A.o.hash.abi        |  10 +-
 .../test-ambiguous-struct-B.o.hash.abi        |   6 +-
 .../test-read-ctf/test-anonymous-fields.o.abi |  10 +-
 .../test-read-ctf/test-array-mdimension.abi   |  16 ++
 .../test-read-ctf/test-array-mdimension.c     |   2 +
 .../test-read-ctf/test-array-mdimension.o     | Bin 0 -> 1360 bytes
 .../test-read-ctf/test-array-of-pointers.abi  |  10 +-
 tests/data/test-read-ctf/test-array-size.abi  |  23 ++
 tests/data/test-read-ctf/test-array-size.c    |   4 +
 tests/data/test-read-ctf/test-array-size.o    | Bin 0 -> 1432 bytes
 .../data/test-read-ctf/test-bitfield-enum.abi |  18 ++
 tests/data/test-read-ctf/test-bitfield-enum.c |  12 +
 tests/data/test-read-ctf/test-bitfield-enum.o | Bin 0 -> 1336 bytes
 tests/data/test-read-ctf/test-bitfield.abi    |  28 +++
 tests/data/test-read-ctf/test-bitfield.c      |  15 ++
 tests/data/test-read-ctf/test-bitfield.o      | Bin 0 -> 1488 bytes
 tests/data/test-read-ctf/test-callback.abi    |   8 +-
 tests/data/test-read-ctf/test-callback2.abi   |   6 +-
 .../test-conflicting-type-syms-a.o.hash.abi   |   2 +-
 .../test-conflicting-type-syms-b.o.hash.abi   |   2 +-
 tests/data/test-read-ctf/test-const-array.abi |  14 ++
 tests/data/test-read-ctf/test-const-array.c   |   2 +
 tests/data/test-read-ctf/test-const-array.o   | Bin 0 -> 1416 bytes
 .../test-read-ctf/test-dynamic-array.o.abi    |  10 +-
 .../test-read-ctf/test-enum-many.o.hash.abi   |   6 +-
 .../test-read-ctf/test-enum-symbol.o.hash.abi |   4 +-
 tests/data/test-read-ctf/test-enum.o.abi      |  10 +-
 tests/data/test-read-ctf/test-fallback.abi    |   2 +-
 .../test-read-ctf/test-forward-type-decl.abi  |   6 +-
 .../test-functions-declaration.abi            |  10 +-
 .../data/test-read-ctf/test-linux-module.abi  |  18 +-
 tests/data/test-read-ctf/test-list-struct.abi |   4 +-
 tests/data/test-read-ctf/test0.abi            |  52 ++---
 tests/data/test-read-ctf/test0.hash.abi       |  30 +--
 tests/data/test-read-ctf/test1.so.abi         |  12 +-
 tests/data/test-read-ctf/test1.so.hash.abi    |   8 +-
 tests/data/test-read-ctf/test2.so.abi         |   8 +-
 tests/data/test-read-ctf/test2.so.hash.abi    |   8 +-
 tests/data/test-read-ctf/test3.so.abi         |   2 +-
 tests/data/test-read-ctf/test3.so.hash.abi    |   2 +-
 tests/data/test-read-ctf/test4.so.abi         |   6 +-
 tests/data/test-read-ctf/test4.so.hash.abi    |   6 +-
 tests/data/test-read-ctf/test5.o.abi          |  28 +--
 tests/data/test-read-ctf/test7.o.abi          |  10 +-
 tests/data/test-read-ctf/test8.o.abi          |   2 +-
 tests/data/test-read-ctf/test9.o.abi          |  48 ++--
 tests/test-read-ctf.cc                        |  45 ++++
 55 files changed, 539 insertions(+), 246 deletions(-)
 create mode 100644 tests/data/test-read-ctf/test-array-mdimension.abi
 create mode 100644 tests/data/test-read-ctf/test-array-mdimension.c
 create mode 100644 tests/data/test-read-ctf/test-array-mdimension.o
 create mode 100644 tests/data/test-read-ctf/test-array-size.abi
 create mode 100644 tests/data/test-read-ctf/test-array-size.c
 create mode 100644 tests/data/test-read-ctf/test-array-size.o
 create mode 100644 tests/data/test-read-ctf/test-bitfield-enum.abi
 create mode 100644 tests/data/test-read-ctf/test-bitfield-enum.c
 create mode 100644 tests/data/test-read-ctf/test-bitfield-enum.o
 create mode 100644 tests/data/test-read-ctf/test-bitfield.abi
 create mode 100644 tests/data/test-read-ctf/test-bitfield.c
 create mode 100644 tests/data/test-read-ctf/test-bitfield.o
 create mode 100644 tests/data/test-read-ctf/test-const-array.abi
 create mode 100644 tests/data/test-read-ctf/test-const-array.c
 create mode 100644 tests/data/test-read-ctf/test-const-array.o