libabigail/tests/data/test-read-dwarf
Dodji Seketeli 35162bd4e3 writer: Emit definitions of declarations when they are present
Libabigail goes a long way to resolve declaration-only classes
to their definitions when it's possible.

The ABIXML writer however sometimes forgets to emit the definition of
such declarations that have been "resolved".

Later, when the binary is compared to its own ABIXML representation,
the reporting engine thus reports that the definition is lost.

This patch fixes that.

	* src/abg-writer.cc (write_class_decl, write_union_decl): Get the
	definition of the declaration if it exists and emit that.
	* tests/data/test-read-dwarf/test13-pr18894.so.abi: Adjust.
	* tests/data/test-read-dwarf/test15-pr18892.so.abi: Likewise.
	* tests/data/test-read-dwarf/test21-pr19092.so.abi: Likewise.
	* tests/data/test-annotate/test13-pr18894.so.abi: Likewise.
	* tests/data/test-annotate/test15-pr18892.so.abi: Likewise.
	* tests/data/test-annotate/test21-pr19092.so.abi: Likewise.

Signed-off-by: Dodji Seketeli <dodji@redhat.com>
2020-11-27 13:53:15 +01:00
..
PR26261 Bug 26769 - Fix missing types in abixml output 2020-11-23 13:02:34 +01:00
libtest23.so
libtest23.so.abi Make sure to canonicalize all types but decl-only classes 2020-11-16 09:16:09 +01:00
libtest24-drop-fns-2.so.abi Bug 26769 - Fix missing types in abixml output 2020-11-23 13:02:34 +01:00
libtest24-drop-fns.so
libtest24-drop-fns.so.abi Bug 26769 - Fix missing types in abixml output 2020-11-23 13:02:34 +01:00
PR22015-libboost_iostreams.so Bug 22015 - Failing to return global scope of a DIE in certain cases 2017-08-28 12:13:32 +02:00
PR22015-libboost_iostreams.so.abi Bug 26769 - Fix missing types in abixml output 2020-11-23 13:02:34 +01:00
PR22122-libftdc.so Bug 22122 - Fail to represent 'const array' 2017-09-11 18:07:02 +02:00
PR22122-libftdc.so.abi Bug 26769 - Fix missing types in abixml output 2020-11-23 13:02:34 +01:00
PR24378-fn-is-not-scope.abi Serialize canonical types to avoid testing if types have been emitted 2019-09-17 17:52:26 +02:00
PR24378-fn-is-not-scope.o Bug 24378 - DW_TAG_subroutine_type as a DIE scope causes infinite loop 2019-03-25 14:46:31 +01:00
PR25007-sdhci.ko Bug 25007 - Don't use section-relative symbol values on ET_REL binaries 2019-09-20 14:13:12 +02:00
PR25007-sdhci.ko.abi Improve enum synthetic type names 2020-11-02 17:37:42 +01:00
PR25042-libgdbm-clang-dwarf5.so.6.0.0 PR25042 - Support string form DW_FORM_strx{1,4} from DWARF 5 2019-10-01 14:14:41 +02:00
PR25042-libgdbm-clang-dwarf5.so.6.0.0.abi Bug 26769 - Fix missing types in abixml output 2020-11-23 13:02:34 +01:00
test0
test0.abi Bug 26769 - Fix missing types in abixml output 2020-11-23 13:02:34 +01:00
test0.cc
test0.hash.abi Bug 26769 - Fix missing types in abixml output 2020-11-23 13:02:34 +01:00
test1
test1.abi abg-writer.cc: Fix indentation of XML output 2020-07-28 17:07:03 +02:00
test1.cc
test1.hash.abi abg-writer.cc: Fix indentation of XML output 2020-07-28 17:07:03 +02:00
test2-0.cc
test2-1.cc
test2.h
test2.so
test2.so.abi Serialize canonical types to avoid testing if types have been emitted 2019-09-17 17:52:26 +02:00
test2.so.hash.abi abg-writer: Add support for stable hash type ids. 2020-06-16 10:13:01 +02:00
test3.c
test3.so
test3.so.abi Bug 21627 - Libabigail doesn't consider translation unit compile dir 2017-07-04 16:35:35 +02:00
test3.so.hash.abi abg-writer: Add support for stable hash type ids. 2020-06-16 10:13:01 +02:00
test4.c
test4.so
test4.so.abi Serialize canonical types to avoid testing if types have been emitted 2019-09-17 17:52:26 +02:00
test4.so.hash.abi abg-writer: Add support for stable hash type ids. 2020-06-16 10:13:01 +02:00
test5.cc
test5.o
test5.o.abi Bug 21627 - Libabigail doesn't consider translation unit compile dir 2017-07-04 16:35:35 +02:00
test5.o.hash.abi abg-writer: Add support for stable hash type ids. 2020-06-16 10:13:01 +02:00
test6.cc
test6.so
test6.so.abi Serialize canonical types to avoid testing if types have been emitted 2019-09-17 17:52:26 +02:00
test6.so.hash.abi abg-writer: Add support for stable hash type ids. 2020-06-16 10:13:01 +02:00
test7.cc
test7.so
test7.so.abi abg-writer.cc: Clean up new line emission. 2020-07-09 19:10:12 +02:00
test7.so.hash.abi abg-writer.cc: Clean up new line emission. 2020-07-09 19:10:12 +02:00
test8-qualified-this-pointer.cc
test8-qualified-this-pointer.so
test8-qualified-this-pointer.so.abi Serialize canonical types to avoid testing if types have been emitted 2019-09-17 17:52:26 +02:00
test8-qualified-this-pointer.so.hash.abi abg-writer: Add support for stable hash type ids. 2020-06-16 10:13:01 +02:00
test9-pr18818-clang.so
test9-pr18818-clang.so.abi Bug 26769 - Fix missing types in abixml output 2020-11-23 13:02:34 +01:00
test10-pr18818-gcc.so
test10-pr18818-gcc.so.abi Bug 26769 - Fix missing types in abixml output 2020-11-23 13:02:34 +01:00
test11-pr18828.so
test11-pr18828.so.abi Bug 26769 - Fix missing types in abixml output 2020-11-23 13:02:34 +01:00
test12-pr18844.so
test12-pr18844.so.abi Bug 26769 - Fix missing types in abixml output 2020-11-23 13:02:34 +01:00
test13-pr18894.so
test13-pr18894.so.abi writer: Emit definitions of declarations when they are present 2020-11-27 13:53:15 +01:00
test14-pr18893.so
test14-pr18893.so.abi Bug 26769 - Fix missing types in abixml output 2020-11-23 13:02:34 +01:00
test15-pr18892.so
test15-pr18892.so.abi writer: Emit definitions of declarations when they are present 2020-11-27 13:53:15 +01:00
test16-pr18904.so
test16-pr18904.so.abi Bug 26769 - Fix missing types in abixml output 2020-11-23 13:02:34 +01:00
test17-pr19027.so
test17-pr19027.so.abi Bug 26769 - Fix missing types in abixml output 2020-11-23 13:02:34 +01:00
test18-pr19037-libvtkRenderingLIC-6.1.so
test18-pr19037-libvtkRenderingLIC-6.1.so.abi Bug 26769 - Fix missing types in abixml output 2020-11-23 13:02:34 +01:00
test19-pr19023-libtcmalloc_and_profiler.so
test19-pr19023-libtcmalloc_and_profiler.so.abi Bug 26769 - Fix missing types in abixml output 2020-11-23 13:02:34 +01:00
test20-pr19025-libvtkParallelCore-6.1.so
test20-pr19025-libvtkParallelCore-6.1.so.abi Bug 26769 - Fix missing types in abixml output 2020-11-23 13:02:34 +01:00
test21-pr19092.so
test21-pr19092.so.abi writer: Emit definitions of declarations when they are present 2020-11-27 13:53:15 +01:00
test22-pr19097-libstdc++.so.6.0.17.so
test22-pr19097-libstdc++.so.6.0.17.so.abi Bug 26769 - Fix missing types in abixml output 2020-11-23 13:02:34 +01:00
test23-first-tu.cc
test23-second-tu.cc
test24-drop-fns-0.suppr
test24-drop-fns.cc
test25-bogus-binary.elf dwarf-reader: handle symtab.section_header.sh_entsize == 0 2020-01-24 22:53:30 +00:00
test26-bogus-binary.elf dwarf-reader: handle binaries with missing symtab 2020-01-25 21:40:14 +00:00
test27-bogus-binary.elf dwarf-reader: remove superfluous ABG_ASSERT 2020-03-18 23:10:14 +01:00
test-libandroid.so dwarf-reader: Ignore zero length location expressions from DW_AT_location 2020-11-02 18:07:01 +01:00
test-libandroid.so.abi Bug 26769 - Fix missing types in abixml output 2020-11-23 13:02:34 +01:00
test-PR26568-1.c Bug 26568 - Union should support more than one anonymous member 2020-09-18 16:32:49 +02:00
test-PR26568-1.o Bug 26568 - Union should support more than one anonymous member 2020-09-18 16:32:49 +02:00
test-PR26568-1.o.abi Bug 26568 - Union should support more than one anonymous member 2020-09-18 16:32:49 +02:00
test-PR26568-2.c Bug 26568 - Union should support more than one anonymous member 2020-09-18 16:32:49 +02:00
test-PR26568-2.o Bug 26568 - Union should support more than one anonymous member 2020-09-18 16:32:49 +02:00
test-PR26568-2.o.abi Bug 26568 - Union should support more than one anonymous member 2020-09-18 16:32:49 +02:00