mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-25 23:44:35 +00:00
Fix and test TRACY_DEMANGLE for TracyClient
The configuration wasn't tested and stopped compiling. This fixes it and adds a test to ensure it doesn't break again.
This commit is contained in:
parent
f15de19fda
commit
c6d9741136
1
.github/workflows/gcc.yml
vendored
1
.github/workflows/gcc.yml
vendored
@ -42,3 +42,4 @@ jobs:
|
|||||||
make -j`nproc` -C test TRACYFLAGS=-DTRACY_ON_DEMAND
|
make -j`nproc` -C test TRACYFLAGS=-DTRACY_ON_DEMAND
|
||||||
make -j`nproc` -C test clean
|
make -j`nproc` -C test clean
|
||||||
make -j`nproc` -C test TRACYFLAGS="-DTRACY_DELAYED_INIT -DTRACY_MANUAL_LIFETIME"
|
make -j`nproc` -C test TRACYFLAGS="-DTRACY_DELAYED_INIT -DTRACY_MANUAL_LIFETIME"
|
||||||
|
make -C test -B ../public/TracyClient.o DEFINES='-DTRACY_DEMANGLE'
|
||||||
|
@ -686,7 +686,9 @@ void InitCallstackCritical()
|
|||||||
void InitCallstack()
|
void InitCallstack()
|
||||||
{
|
{
|
||||||
cb_bts = backtrace_create_state( nullptr, 0, nullptr, nullptr );
|
cb_bts = backtrace_create_state( nullptr, 0, nullptr, nullptr );
|
||||||
|
#ifndef TRACY_DEMANGLE
|
||||||
___tracy_init_demangle_buffer();
|
___tracy_init_demangle_buffer();
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef __linux
|
#ifdef __linux
|
||||||
InitKernelSymbols();
|
InitKernelSymbols();
|
||||||
@ -761,7 +763,9 @@ debuginfod_client* GetDebuginfodClient()
|
|||||||
|
|
||||||
void EndCallstack()
|
void EndCallstack()
|
||||||
{
|
{
|
||||||
|
#ifndef TRACY_DEMANGLE
|
||||||
___tracy_free_demangle_buffer();
|
___tracy_free_demangle_buffer();
|
||||||
|
#endif
|
||||||
#ifdef TRACY_DEBUGINFOD
|
#ifdef TRACY_DEBUGINFOD
|
||||||
ClearDebugInfoVector( s_di_known );
|
ClearDebugInfoVector( s_di_known );
|
||||||
debuginfod_end( s_debuginfod );
|
debuginfod_end( s_debuginfod );
|
||||||
|
Loading…
Reference in New Issue
Block a user