libabigail/tools
Dodji Seketeli 0e1d9f9892 Add a --dump-diff-tree to abidiff for debugging purposes
I have felt the need to emit a textual representation of the diff
nodes tree maintained by the comparison engine for changed functions
and variables.  This patch adds that functionality.

	* include/abg-comparison.h (enum visiting_kind): Add new
	DO_NOT_MARK_VISITED_NODES_AS_TRAVERSED enumerator.
	(diff_context::{default_output_stream, error_output_stream,
	dump_diff_tree}): Declare new accessors.
	(diff::end_traversing): Take a new boolean flag.
	(print_diff_tree): Add new overload for diff_sptr.
	* src/abg-comparison.cc
	(diff_context::priv::{default_output_stream_,
	error_output_stream_, dump_diff_tree_}): New data members.
	(priv::priv): Initialize them.
	(diff_context::{default_output_stream_, error_output_stream_,
	dump_diff_tree, dump_diff_tree}): Define new accessors.
	(diff::end_traversing): Take a new flag that control whether or
	not to mark the current diff node as having been traversed.
	(diff::traverse): Take in account the visiting kind carried by the
	visitor to determine if the visited node should be marked as being
	traversed.
	(corpus_diff::priv::maybe_dump_diff_tree): Define new member
	function.
	(corpus_diff::report): Call it.
	(diff_node_printer::visit): Pretty print the diff node just once.
	(print_diff_tree): Define a new overload for diff_sptr.
	* tools/abidiff.cc (options::dump_diff_tree): New data member.
	(options::options): Initialize it.
	(display_usage): Add a help string for the new --dump-diff-tree
	command line switch.
	(parse_command_line): Parse the new --dump-diff-tree command line
	switch.
	(set_diff_context_from_opts): Set the diff context according to
	the --dump-diff-tree presence.
	* doc/manuals/abidiff.rst: Add a bullet point for the new
	--dump-diff-tree command line switch.

Signed-off-by: Dodji Seketeli <dodji@redhat.com>
2014-12-28 11:36:52 +01:00
..
.gitignore Add .gitignore files. 2014-09-12 11:05:01 +02:00
abg-tools-utils.cc Put IR artifacts in the abigail::ir namespace 2014-10-13 17:44:43 +02:00
abg-tools-utils.h Harden debug info path management & better error reporting 2014-06-04 16:30:18 +02:00
abiar.cc Rename bi* tools to abi* tools 2014-09-26 10:58:16 +02:00
abicompat.cc Temporarily disable redundant diff report elimination 2014-12-10 19:19:57 +01:00
abidiff.cc Add a --dump-diff-tree to abidiff for debugging purposes 2014-12-28 11:36:52 +01:00
abidw.cc Fix status checking in abidw 2014-11-30 19:57:04 +01:00
abilint.cc Support comparing symbols not referenced by debug info 2014-10-22 23:04:40 +02:00
abisym.cc Rename bi* tools to abi* tools 2014-09-26 10:58:16 +02:00
binilint.cc Implement the abigail::ini::config abstraction 2014-10-13 17:44:43 +02:00
Makefile.am Initial implementation of the abicompat tool 2014-12-05 15:43:31 +01:00