Skip to content

Commit f9ab949

Browse files
committed
Bump hard_max_frames to 400
1 parent 4e9f0da commit f9ab949

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1073,7 +1073,7 @@ back-end such as addr2line, for example, you can configure the library to do so.
10731073
| N/A | `CPPTRACE_UNWIND_WITH_NOTHING` | all | Unwinding is not done, stack traces will be empty. |
10741074

10751075
Some back-ends (execinfo and `CaptureStackBackTrace`) require a fixed buffer has to be created to read addresses into
1076-
while unwinding. By default the buffer can hold addresses for 200 frames (beyond the `skip` frames). This is
1076+
while unwinding. By default the buffer can hold addresses for 400 frames (beyond the `skip` frames). This is
10771077
configurable with `CPPTRACE_HARD_MAX_FRAMES`.
10781078

10791079
**Symbol resolution**
@@ -1135,7 +1135,7 @@ Back-ends:
11351135
Back-end configuration:
11361136
- `CPPTRACE_BACKTRACE_PATH=<string>`: Path to libbacktrace backtrace.h, needed when compiling with clang/
11371137
- `CPPTRACE_HARD_MAX_FRAMES=<number>`: Some back-ends write to a fixed-size buffer. This is the size of that buffer.
1138-
Default is `200`.
1138+
Default is `400`.
11391139
- `CPPTRACE_ADDR2LINE_PATH=<string>`: Specify the absolute path to the addr2line binary for cpptrace to invoke. By
11401140
default the config script will search for a binary and use that absolute path (this is to prevent against path
11411141
injection).

cmake/OptionVariables.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ option(CPPTRACE_DEMANGLE_WITH_NOTHING "" OFF)
143143
# ---- Back-end configurations ----
144144

145145
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.")
146-
set(CPPTRACE_HARD_MAX_FRAMES "" CACHE STRING "Hard limit on unwinding depth. Default is 200.")
146+
set(CPPTRACE_HARD_MAX_FRAMES "" CACHE STRING "Hard limit on unwinding depth. Default is 400.")
147147
set(CPPTRACE_ADDR2LINE_PATH "" CACHE STRING "Absolute path to the addr2line executable you want to use.")
148148
option(CPPTRACE_ADDR2LINE_SEARCH_SYSTEM_PATH "" OFF)
149149

src/unwind/unwind.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ namespace detail {
1212
#ifdef CPPTRACE_HARD_MAX_FRAMES
1313
constexpr std::size_t hard_max_frames = CPPTRACE_HARD_MAX_FRAMES;
1414
#else
15-
constexpr std::size_t hard_max_frames = 200;
15+
constexpr std::size_t hard_max_frames = 400;
1616
#endif
1717

1818
CPPTRACE_FORCE_NO_INLINE

0 commit comments

Comments
 (0)