[Lldb-commits] [lldb] [lldb] Fix deadlock in parallel module loading with separate symbol thread pool (PR #160225)

2025-09-22 Thread via lldb-commits
llvmbot wrote: @llvm/pr-subscribers-lldb Author: None (GeorgeHuyubo) Changes Fixes a deadlock that occurs during parallel module loading when symbol indexing operations conflict with module list access. The deadlock happens when: - Thread A (symbol loading): holds Module.m_mutex → tries

[Lldb-commits] [lldb] [lldb] Fix deadlock in parallel module loading with separate symbol thread pool (PR #160225)

2025-09-22 Thread via lldb-commits
https://github.com/GeorgeHuyubo ready_for_review https://github.com/llvm/llvm-project/pull/160225 ___ lldb-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

[Lldb-commits] [lldb] [lldb] Fix deadlock in parallel module loading with separate symbol thread pool (PR #160225)

2025-09-22 Thread via lldb-commits
https://github.com/GeorgeHuyubo updated https://github.com/llvm/llvm-project/pull/160225 >From 51e9f664a755da9175a29ca0537cf8996dd97fb9 Mon Sep 17 00:00:00 2001 From: George Hu Date: Mon, 22 Sep 2025 20:48:57 -0700 Subject: [PATCH] [lldb] Fix deadlock in parallel module loading with separate s

[Lldb-commits] [lldb] [lldb] Fix deadlock in parallel module loading with separate symbol thread pool (PR #160225)

2025-09-22 Thread via lldb-commits
https://github.com/GeorgeHuyubo updated https://github.com/llvm/llvm-project/pull/160225 >From f9edaeca77dd44dc36f3e44acaaea1249d0d9b71 Mon Sep 17 00:00:00 2001 From: George Hu Date: Mon, 22 Sep 2025 20:48:57 -0700 Subject: [PATCH] [lldb] Fix deadlock in parallel module loading with separate s

[Lldb-commits] [lldb] [lldb] Fix deadlock in parallel module loading with separate symbol thread pool (PR #160225)

2025-09-22 Thread via lldb-commits
https://github.com/GeorgeHuyubo updated https://github.com/llvm/llvm-project/pull/160225 >From b4f6da6ff87b109d21bb1cc4e309d698cc0e99fe Mon Sep 17 00:00:00 2001 From: George Hu Date: Mon, 22 Sep 2025 20:48:57 -0700 Subject: [PATCH] [lldb] Fix deadlock in parallel module loading with separate s

[Lldb-commits] [lldb] [lldb] Enable locate module callback for main executable (PR #160199)

2025-09-22 Thread via lldb-commits
GeorgeHuyubo wrote: > 2. It sucks we have to have two code paths for locating modules, one for > shared libraries, one for main executable. I wonder if we should consolidate > to a central place? Like `ModuleList::GetSharedModule`? Thought about this too, but `ModuleList::GetSharedModule` is a

[Lldb-commits] [lldb] [lldb] Fix deadlock in parallel module loading with separate symbol thread pool (PR #160225)

2025-09-22 Thread via lldb-commits
https://github.com/GeorgeHuyubo created https://github.com/llvm/llvm-project/pull/160225 Fixes a deadlock that occurs during parallel module loading when symbol indexing operations conflict with module list access. The deadlock happens when: - Thread A (symbol loading): holds Module.m_mutex → t

[Lldb-commits] [lldb] [lldb] Enable locate module callback for main executable (PR #160199)

2025-09-22 Thread via lldb-commits
https://github.com/GeorgeHuyubo ready_for_review https://github.com/llvm/llvm-project/pull/160199 ___ lldb-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

[Lldb-commits] [lldb] [lldb] Rework how we pass the execution context to the statusline (PR #159887)

2025-09-22 Thread via lldb-commits
@@ -35,9 +35,7 @@ using namespace lldb_private; Statusline::Statusline(Debugger &debugger) : m_debugger(debugger), m_terminal_width(m_debugger.GetTerminalWidth()), - m_terminal_height(m_debugger.GetTerminalHeight()) { - Enable(); -} + m_terminal_height(m_debugge

[Lldb-commits] [lldb] [lldb] Enable locate module callback for main executable (PR #160199)

2025-09-22 Thread via lldb-commits
github-actions[bot] wrote: :warning: C/C++ code formatter, clang-format found issues in your code. :warning: You can test this locally with the following command: ``bash git-clang-format --diff origin/main HEAD --extensions cpp -- lldb/source/Target/Platform.cpp `` :war

[Lldb-commits] [lldb] [lldb] Enable locate module callback for main executable (PR #160199)

2025-09-22 Thread via lldb-commits
https://github.com/GeorgeHuyubo created https://github.com/llvm/llvm-project/pull/160199 Main executables were bypassing the locate module callback that shared libraries use, preventing custom symbol file location logic from working consistently. Fixed by modifying Platform::ResolveExecutabl

[Lldb-commits] [lldb] [vscode-lldb] Restart server when lldb-dap binary has changed (PR #159797)

2025-09-22 Thread Roy Shi via lldb-commits
https://github.com/royitaqi edited https://github.com/llvm/llvm-project/pull/159797 ___ lldb-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

[Lldb-commits] [lldb] [LLDB][PDB] Warn if DIA plugin is requested but not available (PR #160067)

2025-09-22 Thread via lldb-commits
https://github.com/Nerixyz updated https://github.com/llvm/llvm-project/pull/160067 >From 4dab54fd1d003e99ac0b1014b276f0c6d24f9de2 Mon Sep 17 00:00:00 2001 From: Nerixyz Date: Mon, 22 Sep 2025 12:32:08 +0200 Subject: [PATCH 1/4] [LLDB][PDB] Warn if DIA plugin is requested but not available --

[Lldb-commits] [lldb] [vscode-lldb] Restart server when lldb-dap binary has changed (PR #159797)

2025-09-22 Thread Roy Shi via lldb-commits
royitaqi wrote: @walter-erquinigo: Gentle ping. Since your last review, I have: - Used `chokidar`. - Rebased on latest main. - When both the lldb-dap binary and the arguments have changed, I made the dialog box show both changes (see the first screenshot in the patch's description). https://g

[Lldb-commits] [lldb] [lldb] Use APSInt's right shift operator in Scalar (PR #160149)

2025-09-22 Thread Ilia Kuklin via lldb-commits
https://github.com/kuilpd updated https://github.com/llvm/llvm-project/pull/160149 >From 085e848344f5772b3d1481c24ca6471fe45c9138 Mon Sep 17 00:00:00 2001 From: Ilia Kuklin Date: Mon, 22 Sep 2025 20:05:57 +0500 Subject: [PATCH 1/2] [lldb] Use APSInt's right shift operator in Scalar --- lldb/s

[Lldb-commits] [lldb] [lldb] Use APSInt's right shift operator in Scalar (PR #160149)

2025-09-22 Thread Michael Buch via lldb-commits
@@ -118,11 +118,14 @@ TEST(ScalarTest, RightShiftOperator) { int a = 0x1000; int b = 0x; int c = 4; + unsigned d = 0x; Scalar a_scalar(a); Scalar b_scalar(b); Scalar c_scalar(c); + Scalar d_scalar(d); ASSERT_EQ(a >> c, a_scalar >> c_scala

[Lldb-commits] [lldb] [lldb] Use APSInt's right shift operator in Scalar (PR #160149)

2025-09-22 Thread Michael Buch via lldb-commits
https://github.com/Michael137 approved this pull request. https://github.com/llvm/llvm-project/pull/160149 ___ lldb-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

[Lldb-commits] [lldb] [cmake][lldb][test] Respect LIBCXX_LIBDIR_SUBDIR (PR #159106)

2025-09-22 Thread Raul Tambre via lldb-commits
https://github.com/tambry edited https://github.com/llvm/llvm-project/pull/159106 ___ lldb-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

[Lldb-commits] [lldb] [lldb] Use APSInt's right shift operator in Scalar (PR #160149)

2025-09-22 Thread Ilia Kuklin via lldb-commits
https://github.com/kuilpd created https://github.com/llvm/llvm-project/pull/160149 Right shift operator in `Scalar` didn't check if the value is unsigned to perform a logical right shift. Use the right shift operator from `APSInt` that does this check. >From 085e848344f5772b3d1481c24ca6471fe4

[Lldb-commits] [lldb] [lldb] Use APSInt's right shift operator in Scalar (PR #160149)

2025-09-22 Thread via lldb-commits
llvmbot wrote: @llvm/pr-subscribers-lldb Author: Ilia Kuklin (kuilpd) Changes Right shift operator in `Scalar` didn't check if the value is unsigned to perform a logical right shift. Use the right shift operator from `APSInt` that does this check. --- Full diff: https://github.com/llvm/

[Lldb-commits] [lldb] [LLDB][PDB] Warn if DIA plugin is requested but not available (PR #160067)

2025-09-22 Thread Michael Buch via lldb-commits
@@ -0,0 +1,65 @@ +// REQUIRES: !diasdk, target-windows + +// Test plugin.symbol-file.pdb.reader setting without the DIA SDK +// RUN: %build -o %t.exe -- %s +// RUN: env -u LLDB_USE_NATIVE_PDB_READER %lldb %t.exe -o 'target modules dump symfile' 2>&1 | FileCheck --check-prefix=NO-

[Lldb-commits] [lldb] [LLDB][PDB] Warn if DIA plugin is requested but not available (PR #160067)

2025-09-22 Thread Michael Buch via lldb-commits
@@ -136,6 +141,21 @@ class PluginProperties : public Properties { bool UseNativeReader() const { #if LLVM_ENABLE_DIA_SDK && defined(_WIN32) +return IsNativeReaderRequested(); +#else +if (!IsNativeReaderRequested()) { + static std::once_flag g_warning_shown; +

[Lldb-commits] [lldb] cbfa5c8 - [lldb][ClangExpressionParser] Reset DiagnosticManager before we create persistent variables (#160074)

2025-09-22 Thread via lldb-commits
Author: Michael Buch Date: 2025-09-22T17:24:15+01:00 New Revision: cbfa5c84f9423b94d499de7995c0f0eeff066c93 URL: https://github.com/llvm/llvm-project/commit/cbfa5c84f9423b94d499de7995c0f0eeff066c93 DIFF: https://github.com/llvm/llvm-project/commit/cbfa5c84f9423b94d499de7995c0f0eeff066c93.diff

[Lldb-commits] [lldb] [lldb][ClangExpressionParser] Reset DiagnosticManager before we create persistent variables (PR #160074)

2025-09-22 Thread Michael Buch via lldb-commits
https://github.com/Michael137 closed https://github.com/llvm/llvm-project/pull/160074 ___ lldb-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

[Lldb-commits] [lldb] [lldb][ClangExpressionParser] Reset DiagnosticManager before we create persistent variables (PR #160074)

2025-09-22 Thread Adrian Prantl via lldb-commits
https://github.com/adrian-prantl approved this pull request. https://github.com/llvm/llvm-project/pull/160074 ___ lldb-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

[Lldb-commits] [lldb] DRAFT: [lldb][DWARFASTParserClang] Remove old workaround (PR #160132)

2025-09-22 Thread Michael Buch via lldb-commits
https://github.com/Michael137 updated https://github.com/llvm/llvm-project/pull/160132 >From 6293105c42e29cc9151eaac33a4208a91e40a0e9 Mon Sep 17 00:00:00 2001 From: Michael Buch Date: Mon, 22 Sep 2025 16:02:35 +0100 Subject: [PATCH 1/4] Init --- .../SymbolFile/DWARF/DWARFASTParserClang.cpp |

[Lldb-commits] [lldb] DRAFT: [lldb][DWARFASTParserClang] Remove old workaround (PR #160132)

2025-09-22 Thread Michael Buch via lldb-commits
https://github.com/Michael137 updated https://github.com/llvm/llvm-project/pull/160132 >From 6293105c42e29cc9151eaac33a4208a91e40a0e9 Mon Sep 17 00:00:00 2001 From: Michael Buch Date: Mon, 22 Sep 2025 16:02:35 +0100 Subject: [PATCH 1/2] Init --- .../SymbolFile/DWARF/DWARFASTParserClang.cpp |

[Lldb-commits] [lldb] DRAFT: [lldb][DWARFASTParserClang] Remove old workaround (PR #160132)

2025-09-22 Thread Michael Buch via lldb-commits
https://github.com/Michael137 created https://github.com/llvm/llvm-project/pull/160132 None >From 6293105c42e29cc9151eaac33a4208a91e40a0e9 Mon Sep 17 00:00:00 2001 From: Michael Buch Date: Mon, 22 Sep 2025 16:02:35 +0100 Subject: [PATCH] Init --- .../SymbolFile/DWARF/DWARFASTParserClang.cpp

[Lldb-commits] [lldb] Reland #158161 with cmake fix (PR #159842)

2025-09-22 Thread satyanarayana reddy janga via lldb-commits
https://github.com/satyajanga approved this pull request. Looks good to me ! https://github.com/llvm/llvm-project/pull/159842 ___ lldb-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

[Lldb-commits] [lldb] Reland #158161 with cmake fix (PR #159842)

2025-09-22 Thread satyanarayana reddy janga via lldb-commits
https://github.com/satyajanga closed https://github.com/llvm/llvm-project/pull/159842 ___ lldb-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

[Lldb-commits] [lldb] Fix a bug where an error was emitted for GCC union types. (PR #159401)

2025-09-22 Thread Michael Buch via lldb-commits
https://github.com/Michael137 edited https://github.com/llvm/llvm-project/pull/159401 ___ lldb-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

[Lldb-commits] [lldb] [LLDB][PDB] Run UDT layout test with native PDB too (PR #159769)

2025-09-22 Thread via lldb-commits
https://github.com/Nerixyz updated https://github.com/llvm/llvm-project/pull/159769 >From d2c6336279358e570dcdc4e4a1ce75baf0a048ee Mon Sep 17 00:00:00 2001 From: Nerixyz Date: Mon, 22 Sep 2025 11:57:34 +0200 Subject: [PATCH] [LLDB][PDB] Run UDT layout test with native PDB too --- .../SymbolFi

[Lldb-commits] [lldb] Fix a bug where an error was emitted for GCC union types. (PR #159401)

2025-09-22 Thread Michael Buch via lldb-commits
https://github.com/Michael137 edited https://github.com/llvm/llvm-project/pull/159401 ___ lldb-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

[Lldb-commits] [lldb] [LLDB][PDB] Warn if DIA plugin is requested but not available (PR #160067)

2025-09-22 Thread Michael Buch via lldb-commits
@@ -117,11 +117,16 @@ bool ShouldUseNativeReaderByDefault() { !env_value.equals_insensitive("1") && !env_value.equals_insensitive("true")) g_use_native_by_default = false; + +#if !LLVM_ENABLE_DIA_SDK || !defined(_WIN32) +// if the environment value is

[Lldb-commits] [lldb] [lldb][ClangExpressionParser] Reset DiagnosticManager before we creat… (PR #160074)

2025-09-22 Thread Michael Buch via lldb-commits
https://github.com/Michael137 created https://github.com/llvm/llvm-project/pull/160074 …e persistent variables Here's an example crash that we've seen sporadically over the years: ``` 0 libsystem_kernel.dylib 0x19d392388 __pthread_kill + 8 1 libsystem_pthread.dylib

[Lldb-commits] [lldb] [LLDB][PDB] Warn if DIA plugin is requested but not available (PR #160067)

2025-09-22 Thread via lldb-commits
https://github.com/Nerixyz updated https://github.com/llvm/llvm-project/pull/160067 >From 4dab54fd1d003e99ac0b1014b276f0c6d24f9de2 Mon Sep 17 00:00:00 2001 From: Nerixyz Date: Mon, 22 Sep 2025 12:32:08 +0200 Subject: [PATCH 1/2] [LLDB][PDB] Warn if DIA plugin is requested but not available --

[Lldb-commits] [lldb] [lldb][ClangExpressionParser] Reset DiagnosticManager before we create persistent variables (PR #160074)

2025-09-22 Thread Michael Buch via lldb-commits
https://github.com/Michael137 edited https://github.com/llvm/llvm-project/pull/160074 ___ lldb-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

[Lldb-commits] [lldb] [lldb][ClangExpressionParser] Reset DiagnosticManager before we create persistent variables (PR #160074)

2025-09-22 Thread Michael Buch via lldb-commits
Michael137 wrote: The `m_passthrough` guard was added in https://github.com/llvm/llvm-project/commit/4e969da33e113dffc1dfcf5c5e3ef97e3b594161 I assume something got refactored since then that broke it again. Or maybe it was fixing a different codepath leading to this crash https://github.com/

[Lldb-commits] [lldb] [LLDB][PDB] Warn if DIA plugin is requested but not available (PR #160067)

2025-09-22 Thread via lldb-commits
https://github.com/Nerixyz created https://github.com/llvm/llvm-project/pull/160067 If LLDB was built without the DIA SDK and the DIA reader is explicitly requested (through `LLDB_USE_NATIVE_PDB_READER=0` or `settings set plugin.symbol-file.pdb.reader dia`), LLDB should print a warning, becaus

[Lldb-commits] [lldb] [lldb] Introduce Process::FixAnyAddressPreservingAuthentication (PR #159785)

2025-09-22 Thread David Spickett via lldb-commits
DavidSpickett wrote: > In a very ideal world, I would love if we could not strip anything, ever. But > this places some burden on codegen of the expression evaluator, for all > languages and all ABIs. I don't think it's doable right now. Yes we're getting into a pointers as capabilities sort o

[Lldb-commits] [lldb] [LLDB][PDB] Run UDT layout test with native PDB too (PR #159769)

2025-09-22 Thread via lldb-commits
@@ -1,51 +1,63 @@ REQUIRES: target-windows, lld RUN: %build --compiler=clang-cl --output=%t.exe %S/Inputs/UdtLayoutTest.cpp -RUN: %lldb -b -s %S/Inputs/UdtLayoutTest.script -- %t.exe | FileCheck %s +RUN: env LLDB_USE_NATIVE_PDB_READER=0 %lldb -b -s %S/Inputs/UdtLayoutTest.scrip

[Lldb-commits] [lldb] [LLDB][PDB] Run UDT layout test with native PDB too (PR #159769)

2025-09-22 Thread Michael Buch via lldb-commits
@@ -1,51 +1,63 @@ REQUIRES: target-windows, lld RUN: %build --compiler=clang-cl --output=%t.exe %S/Inputs/UdtLayoutTest.cpp -RUN: %lldb -b -s %S/Inputs/UdtLayoutTest.script -- %t.exe | FileCheck %s +RUN: env LLDB_USE_NATIVE_PDB_READER=0 %lldb -b -s %S/Inputs/UdtLayoutTest.scrip

[Lldb-commits] [lldb] [LLDB][PDB] Run UDT layout test with native PDB too (PR #159769)

2025-09-22 Thread via lldb-commits
@@ -1,51 +1,63 @@ REQUIRES: target-windows, lld RUN: %build --compiler=clang-cl --output=%t.exe %S/Inputs/UdtLayoutTest.cpp -RUN: %lldb -b -s %S/Inputs/UdtLayoutTest.script -- %t.exe | FileCheck %s +RUN: env LLDB_USE_NATIVE_PDB_READER=0 %lldb -b -s %S/Inputs/UdtLayoutTest.scrip

[Lldb-commits] [lldb] Fix a bug where an error was emitted for GCC union types. (PR #159401)

2025-09-22 Thread Michael Buch via lldb-commits
https://github.com/Michael137 approved this pull request. Do you have a C++ example snippet of how this happens? https://github.com/llvm/llvm-project/pull/159401 ___ lldb-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/m