libabigail/tests/data
Dodji Seketeli 2f88edd3b3 Fix synthesizing of pointer type
Libabigail fails to to synthesize a non-existing pointer type to an
existing type.

This makes abicompat fail in weak mode when trying to detect changes
to a function type where the parameter is a pointer to a structure
which changed.  In the application, the function is invoked and a
pointer to the structure is passed to it.  It appears that the type of
structure is defined in the debug info of the application, but not the
pointer to that structure.  So abicompat needs to synthesize that
pointer to struct in order to synthesize the type of the function, and
so, compare it to the type of the function coming from the library.

It appears that synthesizing a pointer type (to an existing type) is
not supported.  Only synthesizing qualified type was supported.

This patch adds support for that and thus fixes the abicompat test
case that is attached.

	* include/abg-ir.h: Update copyright.
	* src/abg-ir.cc (synthesize_type_from_translation_unit): Support
	synthesizing pointer types.

	* tests/data/test-abicompat/libtest8-fn-changed-libapp-v0.so: New
	test input.
	* tests/data/test-abicompat/libtest8-fn-changed-libapp-v1.so: Likewise.
	* tests/data/test-abicompat/test8-fn-changed-app: Likewise.
	* tests/data/test-abicompat/test8-fn-changed-app.c: Likewise.
	* tests/data/test-abicompat/test8-fn-changed-libapp-v0.c: Likewise.
	* tests/data/test-abicompat/test8-fn-changed-libapp-v0.h: Likewise.
	* tests/data/test-abicompat/test8-fn-changed-libapp-v1.c: Likewise.
	* tests/data/test-abicompat/test8-fn-changed-libapp-v1.h: Likewise.
	* tests/data/test-abicompat/test8-fn-changed-report-0.txt: Likewise.
	* tests/data/Makefile.am: Add the new test input files to source
	distribution.
	* tests/test-abicompat.cc (in_out_specs): Add the new test inputs
	above to the test harness.

Signed-off-by: Dodji Seketeli <dodji@redhat.com>
2016-02-03 13:00:51 +01:00
..
test-abicompat Fix synthesizing of pointer type 2016-02-03 13:00:51 +01:00
test-abidiff Fix "is-anonymous" abixml property impact on some tests 2015-10-15 13:50:48 +02:00
test-alt-dwarf-file Bug 19336 - Better handle redundantly qualified reference types 2015-12-08 14:11:22 +01:00
test-core-diff
test-diff-dwarf Support DW_AT_count DWARF attribute 2015-11-07 23:22:19 +01:00
test-diff-dwarf-abixml Avoid canonicalizing function types too early 2015-11-09 18:33:58 +01:00
test-diff-filter Add the option of printing the file, line and column information about a type being reported. 2015-12-15 12:32:55 +01:00
test-diff-pkg Lexicographically sort added/removed base classes in change report 2016-01-07 12:50:46 +01:00
test-diff-suppr Add the option of printing the file, line and column information about a type being reported. 2015-12-15 12:32:55 +01:00
test-lookup-syms Re-build a test input file with debug info 2014-05-14 11:32:06 +02:00
test-read-dwarf Bug 19336 - Better handle redundantly qualified reference types 2015-12-08 14:11:22 +01:00
test-read-write Bug 17340 - Support pointers and references to functions 2015-09-30 21:20:42 +02:00
test-types-stability Bug 19204 - libabigail aborts on DWARF referencing non-existing DIE 2016-01-21 10:48:32 +01:00
test-write-read-archive
Makefile.am Fix synthesizing of pointer type 2016-02-03 13:00:51 +01:00