Bump hard max frames from 100 to 200
This commit is contained in:
parent
0084de0f05
commit
15572b029d
@ -337,7 +337,7 @@ try {
|
||||
|
||||
- `CPPTRACE_STATIC=On/Off`: Create cpptrace as a static library.
|
||||
- `CPPTRACE_HARD_MAX_FRAMES=<number>`: 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=<string>`: Path to libbacktrace backtrace.h, needed when compiling with clang/
|
||||
- `CPPTRACE_HARD_MAX_FRAMES=<number>`: 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=<string>`: 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).
|
||||
|
||||
@ -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)
|
||||
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user