[Lldb-commits] [lldb] Fix debug info size statistics for split dwarf (PR #80218)

2024-02-01 Thread via lldb-commits
https://github.com/jeffreytan81 closed https://github.com/llvm/llvm-project/pull/80218 ___ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

[Lldb-commits] [lldb] Fix debug info size statistics for split dwarf (PR #80218)

2024-01-31 Thread Greg Clayton via lldb-commits
https://github.com/clayborg approved this pull request. https://github.com/llvm/llvm-project/pull/80218 ___ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

[Lldb-commits] [lldb] Fix debug info size statistics for split dwarf (PR #80218)

2024-01-31 Thread via lldb-commits
https://github.com/jeffreytan81 updated https://github.com/llvm/llvm-project/pull/80218 >From abfec9a970dd5fb4d5612638e14208555afe582e Mon Sep 17 00:00:00 2001 From: jeffreytan81 Date: Wed, 31 Jan 2024 15:53:46 -0800 Subject: [PATCH 1/3] Fix debug info size statistics for split dwarf ---

[Lldb-commits] [lldb] Fix debug info size statistics for split dwarf (PR #80218)

2024-01-31 Thread via lldb-commits
@@ -2667,6 +2667,29 @@ static bool UpdateCompilerContextForSimpleTemplateNames(TypeQuery ) { } return any_context_updated; } + +uint64_t SymbolFileDWARF::GetDebugInfoSize() { + DWARFDebugInfo = DebugInfo(); + uint32_t num_comp_units = info.GetNumUnits(); + + uint64_t

[Lldb-commits] [lldb] Fix debug info size statistics for split dwarf (PR #80218)

2024-01-31 Thread Adrian Prantl via lldb-commits
@@ -0,0 +1,132 @@ +""" +Test SBTarget.GetStatistics() reporting for dwo files. +""" + +import json +import os + +from lldbsuite.test import lldbtest, lldbutil +from lldbsuite.test.decorators import * +from lldbsuite.test_event.build_exception import BuildError + +

[Lldb-commits] [lldb] Fix debug info size statistics for split dwarf (PR #80218)

2024-01-31 Thread Greg Clayton via lldb-commits
@@ -0,0 +1,132 @@ +""" +Test SBTarget.GetStatistics() reporting for dwo files. +""" + +import json +import os + +from lldbsuite.test import lldbtest, lldbutil +from lldbsuite.test.decorators import * +from lldbsuite.test_event.build_exception import BuildError + +

[Lldb-commits] [lldb] Fix debug info size statistics for split dwarf (PR #80218)

2024-01-31 Thread Greg Clayton via lldb-commits
@@ -2667,6 +2667,29 @@ static bool UpdateCompilerContextForSimpleTemplateNames(TypeQuery ) { } return any_context_updated; } + +uint64_t SymbolFileDWARF::GetDebugInfoSize() { + DWARFDebugInfo = DebugInfo(); + uint32_t num_comp_units = info.GetNumUnits(); + + uint64_t

[Lldb-commits] [lldb] Fix debug info size statistics for split dwarf (PR #80218)

2024-01-31 Thread via lldb-commits
https://github.com/jeffreytan81 updated https://github.com/llvm/llvm-project/pull/80218 >From abfec9a970dd5fb4d5612638e14208555afe582e Mon Sep 17 00:00:00 2001 From: jeffreytan81 Date: Wed, 31 Jan 2024 15:53:46 -0800 Subject: [PATCH 1/2] Fix debug info size statistics for split dwarf ---

[Lldb-commits] [lldb] Fix debug info size statistics for split dwarf (PR #80218)

2024-01-31 Thread via lldb-commits
github-actions[bot] wrote: :warning: Python code formatter, darker found issues in your code. :warning: You can test this locally with the following command: ``bash darker --check --diff -r cf401f72e1b5aa6be0719ab45c95c10ea06bec9a...abfec9a970dd5fb4d5612638e14208555afe582e

[Lldb-commits] [lldb] Fix debug info size statistics for split dwarf (PR #80218)

2024-01-31 Thread via lldb-commits
llvmbot wrote: @llvm/pr-subscribers-lldb Author: None (jeffreytan81) Changes `statistics dump` command relies on `SymbolFile::GetDebugInfoSize()` to get total debug info size. The current implementation is missing debug info for split dwarf scenarios which requires getting debug info

[Lldb-commits] [lldb] Fix debug info size statistics for split dwarf (PR #80218)

2024-01-31 Thread via lldb-commits
https://github.com/jeffreytan81 created https://github.com/llvm/llvm-project/pull/80218 `statistics dump` command relies on `SymbolFile::GetDebugInfoSize()` to get total debug info size. The current implementation is missing debug info for split dwarf scenarios which requires getting debug