libabigail/tools
Dodji Seketeli 5eaeddc943 abidiff: add a --debug-tc option
Like what was done for abidw, this patch adds a --debug-tc option to
abidiff to debug type canonicalization issues.

With this option, just like for abidw, during type canonicalization,
each type comparison is done twice: once using structural comparison
and once using canonical comparison.  Both comparisons should yield
the same result otherwise, an abort signal is emitted, asking for
in-depth debugging to understand reason of the difference.

This option is enabled by the configure option
--enable-debug-type-canonicalization.

It proved useful in debugging some comparison errors I was looking at
recently.

	* doc/manuals/abidiff.rst: Add documentation for the new
	--debug-tc option.  Fix the existing documentation for
	--debug-self-comparison.
	* tools/abidiff.cc (options::do_debug_self_comparison): Renamed
	options::do_debug into this.
	(options::do_debug_type_canonicalization): Add new data member.
	(display_usage): Fix help string for the --debug option that is
	now --debug-self-comparison.  Also, add a help string for the new
	option --debug-tc option.
	(main): Adjust use options::do_debug into
	options::do_debug_self_comparison.  Call
	environment::debug_type_canonicalization() if the user provided
	the --debug-tc option.

Signed-off-by: Dodji Seketeli <dodji@redhat.com>
2022-10-07 22:50:14 +02:00
..
.gitignore Update .gitignore files to ignore typical dev side products 2019-04-16 16:32:52 +02:00
abicompat.cc Update year in copyright notice 2022-06-21 12:58:57 +02:00
abidiff.cc abidiff: add a --debug-tc option 2022-10-07 22:50:14 +02:00
abidw.cc Allow restricting analyzed decls to exported symbols 2022-09-20 11:43:32 +02:00
abilint.cc Update year in copyright notice 2022-06-21 12:58:57 +02:00
abipkgdiff.cc Allow restricting analyzed decls to exported symbols 2022-09-20 11:43:32 +02:00
abisym.cc Update year in copyright notice 2022-06-21 12:58:57 +02:00
binilint.cc Update year in copyright notice 2022-06-21 12:58:57 +02:00
fedabipkgdiff Add Logic to detect file type by extension 2022-05-12 12:10:15 +02:00
kmidiff.cc Allow restricting analyzed decls to exported symbols 2022-09-20 11:43:32 +02:00
Makefile.am Find fts-standalone on musl 2022-02-07 16:26:30 +01:00