We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 51f0700 commit fb847d4Copy full SHA for fb847d4
backward.hpp
@@ -1136,6 +1136,15 @@ class StackTraceImpl<system_tag::current_tag> : public StackTraceImplHolder {
1136
void *error_addr = nullptr) {
1137
set_context(static_cast<CONTEXT*>(context));
1138
set_error_addr(error_addr);
1139
+
1140
+ if (!context) {
1141
+ _stacktrace.resize(depth);
1142
+ const WORD capturedFrames = RtlCaptureStackBackTrace(
1143
+ 0, static_cast<DWORD>(depth), _stacktrace.data(), NULL);
1144
+ _stacktrace.resize(capturedFrames);
1145
+ return capturedFrames;
1146
+ }
1147
1148
CONTEXT localCtx; // used when no context is provided
1149
1150
if (depth == 0) {
0 commit comments