From 726b70b6831eea78c589fe6d54d6a19e9cedfe2c Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Sun, 1 May 2022 15:05:23 +0200 Subject: [PATCH] Add debuginfod context accessor. --- client/TracyCallstack.cpp | 5 +++++ client/TracyCallstack.hpp | 1 + 2 files changed, 6 insertions(+) diff --git a/client/TracyCallstack.cpp b/client/TracyCallstack.cpp index 7a408fe7..4f11a84d 100644 --- a/client/TracyCallstack.cpp +++ b/client/TracyCallstack.cpp @@ -742,6 +742,11 @@ const uint8_t* GetBuildIdForImage( const char* image, size_t& size ) } return nullptr; } + +debuginfod_client* GetDebuginfodClient() +{ + return s_debuginfod; +} #endif void EndCallstack() diff --git a/client/TracyCallstack.hpp b/client/TracyCallstack.hpp index 207c00bb..290fbd93 100644 --- a/client/TracyCallstack.hpp +++ b/client/TracyCallstack.hpp @@ -56,6 +56,7 @@ const char* GetKernelModulePath( uint64_t addr ); #ifdef TRACY_DEBUGINFOD const uint8_t* GetBuildIdForImage( const char* image, size_t& size ); +debuginfod_client* GetDebuginfodClient(); #endif #if TRACY_HAS_CALLSTACK == 1