MCPcopy Create free account
hub / github.com/Vector35/binaryninja-api / ExceptionWithStackTrace

Method ExceptionWithStackTrace

exceptions.cpp:25–40  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

23#include <stdlib.h>
24
25BinaryNinja::ExceptionWithStackTrace::ExceptionWithStackTrace(const std::string& message)
26{
27 m_originalMessage = message;
28 m_message = message;
29 if (auto var = getenv("BN_DEBUG_EXCEPTION_TRACES"); !var || var[0] != '0')
30 {
31 char* stackTrace = BNGetCurrentStackTraceString();
32 if (stackTrace)
33 {
34 m_stackTrace = stackTrace;
35 m_message += "\n";
36 m_message += stackTrace;
37 BNFreeString(stackTrace);
38 }
39 }
40}
41
42
43BinaryNinja::ExceptionWithStackTrace::ExceptionWithStackTrace(std::exception_ptr exc1, std::exception_ptr exc2)

Callers

nothing calls this directly

Calls 1

whatMethod · 0.45

Tested by

no test coverage detected