diff options
| author | Brian Potchik <brian@vector35.com> | 2025-03-10 16:43:01 -0400 |
|---|---|---|
| committer | Brian Potchik <brian@vector35.com> | 2025-03-10 16:43:01 -0400 |
| commit | a9a002c520866f0c63fa33f52ba244213aa479ff (patch) | |
| tree | 767f03c3761e9d1d57f2042f5595dbfc9712826d /exceptions.cpp | |
| parent | f5ff6f5dd53dd4f812bffebbed8484655bcbc48c (diff) | |
Enable exception traces by default.
Diffstat (limited to 'exceptions.cpp')
| -rw-r--r-- | exceptions.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/exceptions.cpp b/exceptions.cpp index bdc1db2c..55a5e97f 100644 --- a/exceptions.cpp +++ b/exceptions.cpp @@ -26,7 +26,7 @@ BinaryNinja::ExceptionWithStackTrace::ExceptionWithStackTrace(const std::string& { m_originalMessage = message; m_message = message; - if (getenv("BN_DEBUG_EXCEPTION_TRACES")) + if (auto var = getenv("BN_DEBUG_EXCEPTION_TRACES"); !var || var[0] != '0') { char* stackTrace = BNGetCurrentStackTraceString(); if (stackTrace) @@ -88,7 +88,7 @@ BinaryNinja::ExceptionWithStackTrace::ExceptionWithStackTrace(std::exception_ptr m_message = "Some unknown exception"; } } - if (getenv("BN_DEBUG_EXCEPTION_TRACES")) + if (auto var = getenv("BN_DEBUG_EXCEPTION_TRACES"); !var || var[0] != '0') { char* stackTrace = BNGetCurrentStackTraceString(); if (stackTrace) |
