diff --git a/README.md b/README.md index ff62c20..c29d2a7 100644 --- a/README.md +++ b/README.md @@ -337,7 +337,7 @@ try { - `CPPTRACE_STATIC=On/Off`: Create cpptrace as a static library. - `CPPTRACE_HARD_MAX_FRAMES=`: Some back-ends write to a fixed-size buffer. This is the size of that buffer. - Default is `100`. + Default is `200`. ## Notes About the Library and Future Work @@ -588,7 +588,7 @@ back-end such as addr2line, for example, you can configure the library to do so. | N/A | `CPPTRACE_UNWIND_WITH_NOTHING` | all | Unwinding is not done, stack traces will be empty. | Some back-ends (execinfo and `CaptureStackBackTrace`) require a fixed buffer has to be created to read addresses into -while unwinding. By default the buffer can hold addresses for 100 frames (beyond the `skip` frames). This is +while unwinding. By default the buffer can hold addresses for 200 frames (beyond the `skip` frames). This is configurable with `CPPTRACE_HARD_MAX_FRAMES`. **Symbol resolution** @@ -647,7 +647,7 @@ Back-ends: Back-end configuration: - `CPPTRACE_BACKTRACE_PATH=`: Path to libbacktrace backtrace.h, needed when compiling with clang/ - `CPPTRACE_HARD_MAX_FRAMES=`: Some back-ends write to a fixed-size buffer. This is the size of that buffer. - Default is `100`. + Default is `200`. - `CPPTRACE_ADDR2LINE_PATH=`: Specify the absolute path to the addr2line binary for cpptrace to invoke. By default the config script will search for a binary and use that absolute path (this is to prevent against path injection). diff --git a/cmake/OptionVariables.cmake b/cmake/OptionVariables.cmake index 183a942..0ef92f0 100644 --- a/cmake/OptionVariables.cmake +++ b/cmake/OptionVariables.cmake @@ -143,7 +143,7 @@ option(CPPTRACE_DEMANGLE_WITH_NOTHING "" OFF) # ---- Back-end configurations ---- set(CPPTRACE_BACKTRACE_PATH "" CACHE STRING "Path to backtrace.h, if the compiler doesn't already know it. Check /usr/lib/gcc/x86_64-linux-gnu/*/include.") -set(CPPTRACE_HARD_MAX_FRAMES "" CACHE STRING "Hard limit on unwinding depth. Default is 100.") +set(CPPTRACE_HARD_MAX_FRAMES "" CACHE STRING "Hard limit on unwinding depth. Default is 200.") set(CPPTRACE_ADDR2LINE_PATH "" CACHE STRING "Absolute path to the addr2line executable you want to use.") option(CPPTRACE_ADDR2LINE_SEARCH_SYSTEM_PATH "" OFF) diff --git a/src/unwind/unwind.hpp b/src/unwind/unwind.hpp index ed89bf2..f468d2b 100644 --- a/src/unwind/unwind.hpp +++ b/src/unwind/unwind.hpp @@ -12,7 +12,7 @@ namespace detail { #ifdef CPPTRACE_HARD_MAX_FRAMES constexpr std::size_t hard_max_frames = CPPTRACE_HARD_MAX_FRAMES; #else - constexpr std::size_t hard_max_frames = 100; + constexpr std::size_t hard_max_frames = 200; #endif CPPTRACE_FORCE_NO_INLINE