public inbox for libabigail@sourceware.org
 help / color / mirror / Atom feed
* [PATCH, applied] dwarf-reader,abidiff: Fix compilation with --enable-debug-type-canonicalization
@ 2023-03-13 17:04 Dodji Seketeli
  0 siblings, 0 replies; only message in thread
From: Dodji Seketeli @ 2023-03-13 17:04 UTC (permalink / raw)
  To: libabigail

Hello,

When looking at something else, I configured the package with
--enable-debug-type-canonicalization and surprise, there were some
compilation errors.  Fixed thus.

	* src/abg-dwarf-reader.cc (reader::initialize): Use env(). rather
	than environment->.
	* tools/abidiff.cc (options::options): Initialize
	do_debug_type_canonicalization() before use_btf.

Signed-off-by: Dodji Seketeli <dodji@redhat.com>
---
 src/abg-dwarf-reader.cc | 2 +-
 tools/abidiff.cc        | 8 ++++----
 2 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/src/abg-dwarf-reader.cc b/src/abg-dwarf-reader.cc
index 113dbdcb..037538af 100644
--- a/src/abg-dwarf-reader.cc
+++ b/src/abg-dwarf-reader.cc
@@ -1976,7 +1976,7 @@ public:
     options().load_all_types = load_all_types;
 #ifdef WITH_DEBUG_TYPE_CANONICALIZATION
     debug_die_canonicalization_is_on_ =
-      environment->debug_die_canonicalization_is_on();
+      env().debug_die_canonicalization_is_on();
     use_canonical_die_comparison_ = true;
 #endif
     compare_count_ = 0;
diff --git a/tools/abidiff.cc b/tools/abidiff.cc
index 3613a4a3..d2fa5b63 100644
--- a/tools/abidiff.cc
+++ b/tools/abidiff.cc
@@ -175,6 +175,10 @@ struct options
       dump_diff_tree(),
       show_stats(),
       do_log()
+#ifdef WITH_DEBUG_TYPE_CANONICALIZATION
+    ,
+      do_debug_type_canonicalization()
+#endif
 #ifdef WITH_CTF
     ,
       use_ctf()
@@ -186,10 +190,6 @@ struct options
 #ifdef WITH_DEBUG_SELF_COMPARISON
     ,
       do_debug_self_comparison()
-#endif
-#ifdef WITH_DEBUG_TYPE_CANONICALIZATION
-    ,
-      do_debug_type_canonicalization()
 #endif
   {}
 
-- 
2.39.2


-- 
		Dodji


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2023-03-13 17:04 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-03-13 17:04 [PATCH, applied] dwarf-reader,abidiff: Fix compilation with --enable-debug-type-canonicalization Dodji Seketeli

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).