public inbox for libabigail@sourceware.org
 help / color / mirror / Atom feed
* [PATCH] configure: add ABIGAIL_DEBUG options
@ 2020-05-11 15:24 Matthias Maennich
  2020-05-11 17:04 ` Mark Wielaard
                   ` (2 more replies)
  0 siblings, 3 replies; 16+ messages in thread
From: Matthias Maennich @ 2020-05-11 15:24 UTC (permalink / raw)
  To: libabigail; +Cc: dodji, gprocida, kernel-team, maennich

When exporting ABIGAIL_DEBUG=1, the binaries compiled are especially
suitable for debugging. The CFLAGS and CXXFLAGS that are added disable
optimization and increase debug information levels.

	* configure.ac: add ABIGAIL_DEBUG environment variable for
	improved debugging capabilities

Signed-off-by: Matthias Maennich <maennich@google.com>
---
 configure.ac | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/configure.ac b/configure.ac
index 9f30ea38cf86..9aea79f49e9a 100644
--- a/configure.ac
+++ b/configure.ac
@@ -621,6 +621,11 @@ if test x$ABIGAIL_DEVEL != x; then
    CXXFLAGS="-g -Wall -Wextra -Werror"
 fi
 
+if test x$ABIGAIL_DEBUG != x; then
+    CFLAGS="$CFLAGS -O0 -g3 -ggdb"
+    CXXFLAGS="$CXXFLAGS -O0 -g3 -ggdb"
+fi
+
 if test x$ENABLE_ASAN = xyes; then
     CFLAGS="$CFLAGS -fsanitize=address"
     CXXFLAGS="$CXXFLAGS -fsanitize=address"
-- 
2.26.2.645.ge9eca65c58-goog


^ permalink raw reply	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2020-05-27 20:52 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-05-11 15:24 [PATCH] configure: add ABIGAIL_DEBUG options Matthias Maennich
2020-05-11 17:04 ` Mark Wielaard
2020-05-11 20:07   ` Matthias Maennich
2020-05-12 10:47     ` Giuliano Procida
2020-05-12 11:59     ` Mark Wielaard
2020-05-12 14:33       ` Matthias Maennich
2020-05-13 10:43       ` Dodji Seketeli
2020-05-13 20:25         ` Matthias Maennich
2020-05-14  8:19           ` Dodji Seketeli
2020-05-13 11:19     ` Dodji Seketeli
2020-05-13 20:12       ` Matthias Maennich
2020-05-27 20:52     ` Matthias Männich
2020-05-13 11:01   ` Dodji Seketeli
2020-05-11 17:24 ` Ben Woodard
2020-05-15  9:19 ` [PATCH v2] " Matthias Maennich
2020-05-18  7:38   ` 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).