From 5361403c3b9bc817f30e8d3a9a924312d5d8995d Mon Sep 17 00:00:00 2001 From: Ajay Brahmakshatriya Date: Sat, 18 Oct 2025 18:53:42 -0400 Subject: [PATCH] Fixed typo when TRACER_USE_LIBUNWIND=1 and split CI jobs for RECOVER_VAR_NAMES=1 --- .github/workflows/ci-all-samples.yml | 10 ++++++++++ src/util/tracer.cpp | 4 ++-- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci-all-samples.yml b/.github/workflows/ci-all-samples.yml index 5154395..db49e33 100644 --- a/.github/workflows/ci-all-samples.yml +++ b/.github/workflows/ci-all-samples.yml @@ -11,6 +11,16 @@ jobs: submodules: recursive - run: sudo apt-get install g++ - run: make -C ${{ github.workspace }} -j$(nproc) run + - run: echo "Tests completed" + CI-Actions-Ubuntu-VarNames: + runs-on: ubuntu-22.04 + steps: + - run: echo "Starting tests" + - name: Checking out repository + uses: actions/checkout@v2 + with: + submodules: recursive + - run: sudo apt-get install g++ - name: Install libunwind-dev run: sudo apt-get install libunwind-dev libdwarf-dev libdwarf1 - run: make -C ${{ github.workspace }} RECOVER_VAR_NAMES=1 -j$(nproc) run diff --git a/src/util/tracer.cpp b/src/util/tracer.cpp index a63d629..73e26df 100644 --- a/src/util/tracer.cpp +++ b/src/util/tracer.cpp @@ -41,7 +41,7 @@ tag get_offset_in_function(void) { continue; } new_tag.static_var_snapshots.push_back(tuple->snapshot()); - if (get_builder_context()->enable_d2x) { + if (builder::get_builder_context()->enable_d2x) { new_tag.static_var_key_values.push_back({tuple->var_name, tuple->serialize()}); } } @@ -51,7 +51,7 @@ tag get_offset_in_function(void) { continue; } new_tag.static_var_snapshots.push_back(tuple->snapshot()); - if (get_builder_context()->enable_d2x) { + if (builder::get_builder_context()->enable_d2x) { new_tag.static_var_key_values.push_back({tuple->var_name, tuple->serialize()}); } }