[Lldb-commits] [lldb] [LLDB] Add type casting to DIL. (PR #159500)

2025-09-23 Thread via lldb-commits
https://github.com/cmtice updated https://github.com/llvm/llvm-project/pull/159500 >From bbacb825638d18f052dfeec253c765001a872229 Mon Sep 17 00:00:00 2001 From: Caroline Tice Date: Wed, 17 Sep 2025 20:21:52 -0700 Subject: [PATCH 1/5] [LLDB] Add type casting to DIL. This adds basic c-style type

[Lldb-commits] [lldb] [LLDB] Add type casting to DIL. (PR #159500)

2025-09-23 Thread via lldb-commits
@@ -0,0 +1,233 @@ +""" +Make sure 'frame var' using DIL parser/evaultor works for C-Style casts. +""" + +import lldb +from lldbsuite.test.lldbtest import * +from lldbsuite.test.decorators import * +from lldbsuite.test import lldbutil + +import os +import shutil +import time + +cla

[Lldb-commits] [lldb] [LLDB] Add type casting to DIL. (PR #159500)

2025-09-23 Thread via lldb-commits
@@ -0,0 +1,233 @@ +""" +Make sure 'frame var' using DIL parser/evaultor works for C-Style casts. +""" + +import lldb +from lldbsuite.test.lldbtest import * +from lldbsuite.test.decorators import * +from lldbsuite.test import lldbutil + +import os +import shutil +import time + +cla

[Lldb-commits] [clang] [lldb] [Clang] Introduce OverflowBehaviorType for fine-grained overflow control (PR #148914)

2025-09-23 Thread Matheus Izvekov via lldb-commits
@@ -426,6 +426,8 @@ LANGOPT(FixedPoint, 1, 0, NotCompatible, "fixed point types") LANGOPT(PaddingOnUnsignedFixedPoint, 1, 0, NotCompatible, "unsigned fixed point types having one extra padding bit") +LANGOPT(OverflowBehaviorTypes, 1, 0, NotCompatible, "overflow behavi

[Lldb-commits] [lldb] Fix a crash when a stop hook deletes itself in its callback. (PR #160416)

2025-09-23 Thread via lldb-commits
llvmbot wrote: @llvm/pr-subscribers-lldb Author: None (jimingham) Changes We're iterating over the stop hooks so if one of them changes the stop hook list by deleting itself or another stop hook, that invalidates our iterator. I chose to fix this by making a copy of the stop hook list an

[Lldb-commits] [lldb] Fix a crash when a stop hook deletes itself in its callback. (PR #160416)

2025-09-23 Thread via lldb-commits
https://github.com/jimingham created https://github.com/llvm/llvm-project/pull/160416 We're iterating over the stop hooks so if one of them changes the stop hook list by deleting itself or another stop hook, that invalidates our iterator. I chose to fix this by making a copy of the stop hook l

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

2025-09-23 Thread Greg Clayton via lldb-commits
https://github.com/clayborg requested changes to this pull request. I would like to see this functionality in `ModuleList::GetSharedModule(...)`, even if we must pass a target in there. We pass down the `module_search_paths_ptr` which come from the target's settings anyway, so it would be wort

[Lldb-commits] [clang] [lldb] [Clang] Introduce OverflowBehaviorType for fine-grained overflow control (PR #148914)

2025-09-23 Thread Matheus Izvekov via lldb-commits
mizvekov wrote: > Additionally, just for some namespace sanity (especially from the perspective > of Linux's use of OBTs), can we have the type specifier named > "__ob_$behavior": __ob_wrap, __ob_trap ? That would make things a bit cleaner > for Linux's resulting macros for OBT usage to de-con

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

2025-09-23 Thread Greg Clayton via lldb-commits
https://github.com/clayborg requested changes to this pull request. Ditto, I would change this patch to use a read/write lock. We definitely don't want a new thread pool, we must always use the one global thread pool for operations. https://github.com/llvm/llvm-project/pull/160225

[Lldb-commits] [lldb] Allow setting breakpoints in objc++ files (PR #159779)

2025-09-23 Thread Jonas Devlieghere via lldb-commits
https://github.com/JDevlieghere approved this pull request. Thank you! https://github.com/llvm/llvm-project/pull/159779 ___ lldb-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

[Lldb-commits] [lldb] [lldb] Adding A new Binding helper for JSONTransport. (PR #159160)

2025-09-23 Thread John Harrison via lldb-commits
@@ -50,17 +58,54 @@ class TransportUnhandledContentsError std::string m_unhandled_contents; }; +/// An error to indicate that the parameters of a Req, Resp or Evt could not be +/// deserialized. +class InvalidParams : public llvm::ErrorInfo { +public: + static char ID; + +

[Lldb-commits] [lldb] [lldb] Adding A new Binding helper for JSONTransport. (PR #159160)

2025-09-23 Thread Jonas Devlieghere via lldb-commits
https://github.com/JDevlieghere edited https://github.com/llvm/llvm-project/pull/159160 ___ 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-23 Thread Jordan Rupprecht via lldb-commits
@@ -737,11 +801,44 @@ class Executor { bool operator()(SH inst) { return Store(m_emu, inst); } bool operator()(SW inst) { return Store(m_emu, inst); } bool operator()(ADDI inst) { -return transformOptional(inst.rs1.ReadI64(m_emu), - [&](int

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

2025-09-23 Thread Jonas Devlieghere via lldb-commits
https://github.com/JDevlieghere requested changes to this pull request. Can you explain how having a separate thread pool addresses the issue? It's unclear to me how that would avoid the deadlock. Regardless, I don't think we should have two thread pools as that pretty much defeats the purpos

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

2025-09-23 Thread Jonas Devlieghere via lldb-commits
https://github.com/JDevlieghere updated https://github.com/llvm/llvm-project/pull/159887 >From 4fe7308f3caf0449d9ee03dbf3969cffc867e969 Mon Sep 17 00:00:00 2001 From: Jonas Devlieghere Date: Fri, 19 Sep 2025 21:37:05 + Subject: [PATCH 1/3] [lldb] Rework how we pass the execution context to

[Lldb-commits] [lldb] c31d503 - [LLDB] Fix 64 bit support for CIE and FDE handling in DWARFCallFrameInfo (#158350)

2025-09-23 Thread via lldb-commits
Author: Andrew Gontarek Date: 2025-09-23T12:57:24-04:00 New Revision: c31d50378bdba3aab936dfc30b78911431641906 URL: https://github.com/llvm/llvm-project/commit/c31d50378bdba3aab936dfc30b78911431641906 DIFF: https://github.com/llvm/llvm-project/commit/c31d50378bdba3aab936dfc30b78911431641906.dif

[Lldb-commits] [lldb] [LLDB] Fix 64 bit support for CIE and FDE handling in DWARFCallFrameInfo (PR #158350)

2025-09-23 Thread Andrew Gontarek via lldb-commits
https://github.com/agontarek edited https://github.com/llvm/llvm-project/pull/158350 ___ lldb-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

[Lldb-commits] [lldb] [lldb][test] check if CoreDumping info is supported (PR #160333)

2025-09-23 Thread via lldb-commits
llvmbot wrote: @llvm/pr-subscribers-lldb Author: Ebuka Ezike (da-viper) Changes CoreDumping in /proc/pid/stat was added in kernel 4.15, this causes the test to fail in older kernel versions. see https://man7.org/linux/man-pages/man5/proc_pid_status.5.html --- Full diff: https://github.c

[Lldb-commits] [lldb] [lldb][test] check if CoreDumping info is supported (PR #160333)

2025-09-23 Thread Ebuka Ezike via lldb-commits
https://github.com/da-viper created https://github.com/llvm/llvm-project/pull/160333 CoreDumping in /proc/pid/stat was added in kernel 4.15, this causes the test to fail in older kernel versions. see https://man7.org/linux/man-pages/man5/proc_pid_status.5.html >From a4f055b6d6794fca3f09e128d5

[Lldb-commits] [lldb] [lldb][TypeSystemClang] Added unique builtins types for __bf16 and _Float16 (PR #157674)

2025-09-23 Thread Timur Golubovich via lldb-commits
https://github.com/tgs-sc edited https://github.com/llvm/llvm-project/pull/157674 ___ lldb-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

[Lldb-commits] [lldb] [lldb][TypeSystemClang] Added unique builtins types for __bf16 and _Float16 (PR #157674)

2025-09-23 Thread Timur Golubovich via lldb-commits
https://github.com/tgs-sc edited https://github.com/llvm/llvm-project/pull/157674 ___ lldb-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

[Lldb-commits] [lldb] [lldb][TypeSystemClang] Added unique builtins types for __bf16 and _Float16 (PR #157674)

2025-09-23 Thread Timur Golubovich via lldb-commits
https://github.com/tgs-sc edited https://github.com/llvm/llvm-project/pull/157674 ___ lldb-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

[Lldb-commits] [lldb] [lldb][TypeSystemClang] Added unique builtins types for __bf16 and _Float16 (PR #157674)

2025-09-23 Thread Timur Golubovich via lldb-commits
@@ -82,7 +82,7 @@ def test(self): value = self.expect_expr("temp7", result_type="Foo<__fp16, __fp16>") tgs-sc wrote: I can make such changes ``` // '_Float16' FLOATING_TYPE(Float16, HalfTy) ``` -> ``` // '_Float16' FLOATING_TYPE(Float16, Float16Ty) ``` B

[Lldb-commits] [lldb] 1af2ddb - [lldb][test] Disable part of TestDAP_module.py on Linux

2025-09-23 Thread David Spickett via lldb-commits
Author: David Spickett Date: 2025-09-23T14:19:00Z New Revision: 1af2ddbbcfaf65c0fcf14235816055c5d1f93ef0 URL: https://github.com/llvm/llvm-project/commit/1af2ddbbcfaf65c0fcf14235816055c5d1f93ef0 DIFF: https://github.com/llvm/llvm-project/commit/1af2ddbbcfaf65c0fcf14235816055c5d1f93ef0.diff LOG

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

2025-09-23 Thread Roy Shi via lldb-commits
royitaqi wrote: @walter-erquinigo: Thanks for sharing the context about the reliability. I appreciate it. Will keep that in mind. https://github.com/llvm/llvm-project/pull/159797 ___ lldb-commits mailing list [email protected] https://lists.

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

2025-09-23 Thread Walter Erquinigo via lldb-commits
https://github.com/walter-erquinigo approved this pull request. cool! thanks! About the reliability, all I can tell you is that I used to manage a few vscode extensions and tracking modification times was not always working on all systems. At least that's why my users reported, but I never got

[Lldb-commits] [clang] [lldb] [clang][Expr] Teach IgnoreUnlessSpelledInSource about implicit calls to std::get free function (PR #122265)

2025-09-23 Thread Michael Buch via lldb-commits
Michael137 wrote: > I'm afraid I'm seeing a test regression with this change (confirmed via > bisect), on Gentoo amd64: > > ``` > FAIL: Clang :: DebugInfo/CXX/structured-binding.cpp (11221 of 22437) > TEST 'Clang :: DebugInfo/CXX/structured-binding.cpp' > FAILED **

[Lldb-commits] [lldb] [lldb][TypeSystemClang] Added unique builtins types for __bf16 and _Float16 (PR #157674)

2025-09-23 Thread Timur Golubovich via lldb-commits
https://github.com/tgs-sc updated https://github.com/llvm/llvm-project/pull/157674 >From 746101620732788c5f975ac96f83ad90213e1252 Mon Sep 17 00:00:00 2001 From: Timur Golubovich Date: Tue, 9 Sep 2025 13:39:33 + Subject: [PATCH] [lldb][TypeSystemClang] Added unique builtins types for __bf16

[Lldb-commits] [lldb] [lldb][TypeSystemClang] Added unique builtins types for __bf16 and _Float16 (PR #157674)

2025-09-23 Thread Timur Golubovich via lldb-commits
@@ -82,7 +82,7 @@ def test(self): value = self.expect_expr("temp7", result_type="Foo<__fp16, __fp16>") tgs-sc wrote: There is a mapping in `clang/include/clang/AST/BuiltinTypes.def` that maps Float16 to HalfTy, so actually it shouldn't be displayed as _

[Lldb-commits] [clang] [lldb] [clang][Expr] Teach IgnoreUnlessSpelledInSource about implicit calls to std::get free function (PR #122265)

2025-09-23 Thread Michał Górny via lldb-commits
mgorny wrote: Sure: ```llvm ; ModuleID = '/var/tmp/portage/llvm-core/clang-22.0.0./work/clang/test/DebugInfo/CXX/structured-binding.cpp' source_filename = "/var/tmp/portage/llvm-core/clang-22.0.0./work/clang/test/DebugInfo/CXX/structured-binding.cpp" target datalayout = "e-m:e-p:32:32

[Lldb-commits] [clang] [lldb] [clang][Expr] Teach IgnoreUnlessSpelledInSource about implicit calls to std::get free function (PR #122265)

2025-09-23 Thread Michael Buch via lldb-commits
Michael137 wrote: > I'm afraid I'm seeing a test regression with this change (confirmed via > bisect), on Gentoo amd64: > > ``` > FAIL: Clang :: DebugInfo/CXX/structured-binding.cpp (11221 of 22437) > TEST 'Clang :: DebugInfo/CXX/structured-binding.cpp' > FAILED **

[Lldb-commits] [clang] [lldb] [clang][Expr] Teach IgnoreUnlessSpelledInSource about implicit calls to std::get free function (PR #122265)

2025-09-23 Thread Michał Górny via lldb-commits
mgorny wrote: I'm afraid I'm seeing a test regression with this change (confirmed via bisect), on Gentoo amd64: ``` FAIL: Clang :: DebugInfo/CXX/structured-binding.cpp (11221 of 22437) TEST 'Clang :: DebugInfo/CXX/structured-binding.cpp' FAILED Exit Co

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

2025-09-23 Thread via lldb-commits
https://github.com/Nerixyz closed https://github.com/llvm/llvm-project/pull/160067 ___ lldb-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

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

2025-09-23 Thread via lldb-commits
Author: nerix Date: 2025-09-23T12:14:59+02:00 New Revision: 5b3dd43bd20d9c4e1cd05e39d2e022b368b0fbdc URL: https://github.com/llvm/llvm-project/commit/5b3dd43bd20d9c4e1cd05e39d2e022b368b0fbdc DIFF: https://github.com/llvm/llvm-project/commit/5b3dd43bd20d9c4e1cd05e39d2e022b368b0fbdc.diff LOG: [L

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

2025-09-23 Thread via lldb-commits
https://github.com/Nerixyz closed https://github.com/llvm/llvm-project/pull/159769 ___ 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-23 Thread via lldb-commits
https://github.com/Nerixyz edited https://github.com/llvm/llvm-project/pull/159769 ___ 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-23 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/5] [LLDB][PDB] Warn if DIA plugin is requested but not available --

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

2025-09-23 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] [LLDB][PDB] Warn if DIA plugin is requested but not available (PR #160067)

2025-09-23 Thread Michael Buch via lldb-commits
https://github.com/Michael137 approved this pull request. https://github.com/llvm/llvm-project/pull/160067 ___ 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-23 Thread Michael Buch via lldb-commits
@@ -105,24 +106,21 @@ enum { #include "SymbolFilePDBPropertiesEnum.inc" }; -#if LLVM_ENABLE_DIA_SDK && defined(_WIN32) -bool ShouldUseNativeReaderByDefault() { - static bool g_use_native_by_default = true; - - static llvm::once_flag g_initialize; - llvm::call_once(g_initial