From b7227245cae0b7774b054e05d4d4b5b435db3a2f Mon Sep 17 00:00:00 2001 From: Michael Bickel Date: Sun, 8 Sep 2024 22:46:54 +0200 Subject: [PATCH] add ctx to cppia-stackframe; fix sourcelocation's fullName --- src/hx/TelemetryTracy.cpp | 4 ++-- src/hx/cppia/Cppia.h | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/hx/TelemetryTracy.cpp b/src/hx/TelemetryTracy.cpp index ce0c4dcb7..b33947b76 100644 --- a/src/hx/TelemetryTracy.cpp +++ b/src/hx/TelemetryTracy.cpp @@ -92,8 +92,8 @@ void hx::tlmSampleEnter(hx::Telemetry* telemetry, hx::StackFrame* frame) frame->lineNumber, frame->position->fileName, strlen(frame->position->fileName), - frame->position->fileName, - strlen(frame->position->fileName), + frame->position->fullName, + strlen(frame->position->fullName), 0); // Hxcpp callstack depth starts at 0, but tracy expects it to start at 1. diff --git a/src/hx/cppia/Cppia.h b/src/hx/cppia/Cppia.h index 0cdb7207b..572df9144 100644 --- a/src/hx/cppia/Cppia.h +++ b/src/hx/cppia/Cppia.h @@ -781,6 +781,7 @@ class CppiaClassInfo ctx = inCtx; frame = (hx::StackFrame *)ctx->stackAlloc(sizeof(hx::StackFrame)); frame->position = inPosition; + frame->ctx = ctx; #ifdef HXCPP_DEBUGGER frame->variables = 0; frame->catchables = 0;