From 8e6ab1809fe7c6fa63385790aabb4f1468d1c411 Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Wed, 12 Aug 2009 10:08:20 +0200 Subject: [PATCH] Enable the debug calltrace by default. --- ConfigureChecks.cmake | 4 ++++ DefineOptions.cmake | 3 ++- config.h.cmake | 3 +++ 3 files changed, 9 insertions(+), 1 deletion(-) diff --git a/ConfigureChecks.cmake b/ConfigureChecks.cmake index 482ce65f..e3f53ea2 100644 --- a/ConfigureChecks.cmake +++ b/ConfigureChecks.cmake @@ -69,5 +69,9 @@ if (WITH_DEBUG_CRYPTO) set(DEBUG_CRYPTO 1) endif (WITH_DEBUG_CRYPTO) +if (WITH_DEBUG_CALLTRACE) + set(DEBUG_CALLTRACE 1) +endif (WITH_DEBUG_CALLTRACE) + # ENDIAN test_big_endian(WORDS_BIGENDIAN) diff --git a/DefineOptions.cmake b/DefineOptions.cmake index d482e199..0fb25876 100644 --- a/DefineOptions.cmake +++ b/DefineOptions.cmake @@ -3,4 +3,5 @@ option(WITH_SSH1 "Build with SSH1 support" OFF) option(WITH_SFTP "Build with SFTP support" ON) option(WITH_SERVER "Build with SSH server support" ON) option(WITH_STATIC_LIB "Build with a static library" OFF) -option(WITH_DEBUG_CRYPTO "Build with cryto debut output" OFF) +option(WITH_DEBUG_CRYPTO "Build with cryto debug output" OFF) +option(WITH_DEBUG_CALLTRACE "Build with calltrace debug output" ON) diff --git a/config.h.cmake b/config.h.cmake index 69863735..ad97b116 100644 --- a/config.h.cmake +++ b/config.h.cmake @@ -77,6 +77,9 @@ /* Define to 1 if you want to enable debug output for crypto functions */ #cmakedefine DEBUG_CRYPTO 1 +/* Define to 1 if you want to enable calltrace debug output */ +#cmakedefine DEBUG_CALLTRACE 1 + /*************************** ENDIAN *****************************/ /* Define WORDS_BIGENDIAN to 1 if your processor stores words with the most