[Lldb-commits] [lldb] [lldb/Target] Add SyntheticFrameProvider class (PR #166664)

2025-11-05 Thread Med Ismail Bennani via lldb-commits
@@ -0,0 +1,133 @@ + +//===*- C++ -*-===// +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier:

[Lldb-commits] [lldb] [lldb] Introduce ScriptedFrameProvider for real threads (PR #161870)

2025-11-05 Thread Med Ismail Bennani via lldb-commits
medismailben wrote: In order to simplify reviewing this, I've split the commits in different PRs: #166651, #14, #12 and this one. https://github.com/llvm/llvm-project/pull/161870 ___ lldb-commits mailing list [email protected] https:

[Lldb-commits] [lldb] [lldb] Make it so not finding and SDK doesn't look like an error (PR #166676)

2025-11-05 Thread via lldb-commits
llvmbot wrote: @llvm/pr-subscribers-lldb Author: Jonas Devlieghere (JDevlieghere) Changes There may be valid reasons for not being able to find an SDK. Right now, it's printed as an error, which is causing confusion for users that interpret the error as something fatal, and not something

[Lldb-commits] [lldb] [lldb] Make it so not finding and SDK doesn't look like an error (PR #166676)

2025-11-05 Thread Jonas Devlieghere via lldb-commits
https://github.com/JDevlieghere created https://github.com/llvm/llvm-project/pull/166676 There may be valid reasons for not being able to find an SDK. Right now, it's printed as an error, which is causing confusion for users that interpret the error as something fatal, and not something that c

[Lldb-commits] [lldb] [debugserver] Move constants into TaskPortForProcessID (NFC) (PR #166670)

2025-11-05 Thread Jonas Devlieghere via lldb-commits
https://github.com/JDevlieghere created https://github.com/llvm/llvm-project/pull/166670 I was looking at the calls to `usleep` in debugserver and noticed that these default arguments are never overwritten. I converted them to constants in the function, which makes it easier to reason about.

[Lldb-commits] [lldb] d584d00 - [lldb] Introduce SBFrameList for lazy frame iteration (#166651)

2025-11-05 Thread via lldb-commits
Author: Med Ismail Bennani Date: 2025-11-05T16:02:02-08:00 New Revision: d584d00ed250e547c9910e0a93b7f9d07f2e71c3 URL: https://github.com/llvm/llvm-project/commit/d584d00ed250e547c9910e0a93b7f9d07f2e71c3 DIFF: https://github.com/llvm/llvm-project/commit/d584d00ed250e547c9910e0a93b7f9d07f2e71c3.

[Lldb-commits] [lldb] [lldb] Introduce SBFrameList for lazy frame iteration (PR #166651)

2025-11-05 Thread Med Ismail Bennani via lldb-commits
https://github.com/medismailben closed https://github.com/llvm/llvm-project/pull/166651 ___ lldb-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

[Lldb-commits] [lldb] [lldb] Introduce SBFrameList for lazy frame iteration (PR #166651)

2025-11-05 Thread Med Ismail Bennani via lldb-commits
https://github.com/medismailben updated https://github.com/llvm/llvm-project/pull/166651 >From c8b43aa1031e9149e11decdfdf40dfc8ceac5f34 Mon Sep 17 00:00:00 2001 From: Med Ismail Bennani Date: Wed, 5 Nov 2025 15:52:32 -0800 Subject: [PATCH] [lldb] Introduce SBFrameList for lazy frame iteration

[Lldb-commits] [lldb] [lldb] Introduce SBFrameList for lazy frame iteration (PR #166651)

2025-11-05 Thread Med Ismail Bennani via lldb-commits
https://github.com/medismailben updated https://github.com/llvm/llvm-project/pull/166651 >From 53a6cf72a8cda4f277694b90202af822b2401ad3 Mon Sep 17 00:00:00 2001 From: Med Ismail Bennani Date: Wed, 5 Nov 2025 15:52:32 -0800 Subject: [PATCH] [lldb] Introduce SBFrameList for lazy frame iteration

[Lldb-commits] [lldb] [lldb/Interpreter] Implement ScriptedFrameProvider{, Python}Interface (PR #166662)

2025-11-05 Thread Alex Langford via lldb-commits
https://github.com/bulbazord commented: I don't see anything egregious. Deferring to Jonas's judgement. https://github.com/llvm/llvm-project/pull/12 ___ lldb-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/li

[Lldb-commits] [lldb] [lldb] Introduce SBFrameList for lazy frame iteration (PR #166651)

2025-11-05 Thread Med Ismail Bennani via lldb-commits
https://github.com/medismailben updated https://github.com/llvm/llvm-project/pull/166651 >From 53a6cf72a8cda4f277694b90202af822b2401ad3 Mon Sep 17 00:00:00 2001 From: Med Ismail Bennani Date: Wed, 5 Nov 2025 15:52:32 -0800 Subject: [PATCH] [lldb] Introduce SBFrameList for lazy frame iteration

[Lldb-commits] [lldb] [lldb] Introduce SBFrameList for lazy frame iteration (PR #166651)

2025-11-05 Thread Jonas Devlieghere via lldb-commits
https://github.com/JDevlieghere approved this pull request. LGTM modulo missing newlines. https://github.com/llvm/llvm-project/pull/166651 ___ lldb-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-co

[Lldb-commits] [lldb] [lldb] Introduce SBFrameList for lazy frame iteration (PR #166651)

2025-11-05 Thread Jonas Devlieghere via lldb-commits
@@ -1,3 +1,3 @@ CXX_SOURCES := main.cpp -include Makefile.rules +include Makefile.rules JDevlieghere wrote: Newline still missing. https://github.com/llvm/llvm-project/pull/166651 ___ lldb-commits mailing list lldb-

[Lldb-commits] [lldb] [lldb] Introduce SBFrameList for lazy frame iteration (PR #166651)

2025-11-05 Thread Jonas Devlieghere via lldb-commits
@@ -0,0 +1,13 @@ +%feature("docstring", +"Represents a list of :py:class:`SBFrame` objects." +) lldb::SBFrameList; + +%feature("autodoc", "GetSize(SBFrameList self) -> uint32_t") lldb::SBFrameList::GetSize; +%feature("docstring", " +Returns the number of frames in the list."

[Lldb-commits] [lldb] [lldb] Introduce SBFrameList for lazy frame iteration (PR #166651)

2025-11-05 Thread Jonas Devlieghere via lldb-commits
@@ -0,0 +1,22 @@ +#include + +int c(int val) { + // Set break point at this line + return val + 3; +} + +int b(int val) { + int result = c(val); + return result; +} + +int a(int val) { + int result = b(val); + return result; +} + +int main() { + int result = a(1); + print

[Lldb-commits] [lldb] [lldb] Introduce SBFrameList for lazy frame iteration (PR #166651)

2025-11-05 Thread Med Ismail Bennani via lldb-commits
https://github.com/medismailben updated https://github.com/llvm/llvm-project/pull/166651 >From 244ae1a765bab07aece0d04eaf6119f8c6930b8b Mon Sep 17 00:00:00 2001 From: Med Ismail Bennani Date: Wed, 5 Nov 2025 15:51:23 -0800 Subject: [PATCH] [lldb] Introduce SBFrameList for lazy frame iteration

[Lldb-commits] [lldb] [lldb] Introduce SBFrameList for lazy frame iteration (PR #166651)

2025-11-05 Thread Med Ismail Bennani via lldb-commits
https://github.com/medismailben updated https://github.com/llvm/llvm-project/pull/166651 >From aa9c49a73454931007550aca3c88f2213fc8cf21 Mon Sep 17 00:00:00 2001 From: Med Ismail Bennani Date: Wed, 5 Nov 2025 15:50:35 -0800 Subject: [PATCH] [lldb] Introduce SBFrameList for lazy frame iteration

[Lldb-commits] [lldb] [lldb] Introduce SBFrameList for lazy frame iteration (PR #166651)

2025-11-05 Thread Med Ismail Bennani via lldb-commits
https://github.com/medismailben updated https://github.com/llvm/llvm-project/pull/166651 >From 217ec96660fd366985a3a29369dcd4ba0e6babe2 Mon Sep 17 00:00:00 2001 From: Med Ismail Bennani Date: Wed, 5 Nov 2025 15:48:51 -0800 Subject: [PATCH] [lldb] Introduce SBFrameList for lazy frame iteration

[Lldb-commits] [lldb] [lldb/Target] Add SyntheticFrameProvider class (PR #166664)

2025-11-05 Thread Jonas Devlieghere via lldb-commits
@@ -0,0 +1,133 @@ + +//===*- C++ -*-===// JDevlieghere wrote: ```suggestion //===--===// ``` https://github.com/llvm/llvm-project/pul

[Lldb-commits] [lldb] [lldb/Target] Add SyntheticFrameProvider class (PR #166664)

2025-11-05 Thread Jonas Devlieghere via lldb-commits
@@ -0,0 +1,133 @@ + +//===*- C++ -*-===// +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier:

[Lldb-commits] [lldb] [lldb/Target] Add SyntheticFrameProvider class (PR #166664)

2025-11-05 Thread Jonas Devlieghere via lldb-commits
@@ -0,0 +1,133 @@ + +//===*- C++ -*-===// +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier:

[Lldb-commits] [lldb] [lldb/Target] Add SyntheticFrameProvider class (PR #166664)

2025-11-05 Thread Jonas Devlieghere via lldb-commits
@@ -0,0 +1,133 @@ + +//===*- C++ -*-===// +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier:

[Lldb-commits] [lldb] [lldb/Target] Add SyntheticFrameProvider class (PR #166664)

2025-11-05 Thread Jonas Devlieghere via lldb-commits
@@ -0,0 +1,133 @@ + +//===*- C++ -*-===// +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier:

[Lldb-commits] [lldb] [lldb/Target] Add SyntheticFrameProvider class (PR #166664)

2025-11-05 Thread Jonas Devlieghere via lldb-commits
@@ -0,0 +1,133 @@ + JDevlieghere wrote: Spurious newline https://github.com/llvm/llvm-project/pull/14 ___ lldb-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-c

[Lldb-commits] [lldb] [lldb] Support arbitrary precision integer registers (PR #166363)

2025-11-05 Thread Matej Košík via lldb-commits
@@ -218,7 +218,7 @@ class RegisterValue { } void SetUInt128(llvm::APInt uint) { -m_type = eTypeUInt128; +m_type = eTypeUIntBig; m_scalar = std::move(uint); } sedymrak wrote: I have realized (after some more testing) that what I have writte

[Lldb-commits] [lldb] [lldb] Introduce SBFrameList for lazy frame iteration (PR #166651)

2025-11-05 Thread via lldb-commits
llvmbot wrote: @llvm/pr-subscribers-lldb Author: Med Ismail Bennani (medismailben) Changes This patch introduces `SBFrameList`, a new SBAPI class that allows iterating over stack frames lazily without calling `SBThread::GetFrameAtIndex` in a loop. The new `SBThread::GetFrames()` method r

[Lldb-commits] [lldb] [lldb] Introduce SBFrameList for lazy frame iteration (PR #166651)

2025-11-05 Thread Med Ismail Bennani via lldb-commits
https://github.com/medismailben created https://github.com/llvm/llvm-project/pull/166651 This patch introduces `SBFrameList`, a new SBAPI class that allows iterating over stack frames lazily without calling `SBThread::GetFrameAtIndex` in a loop. The new `SBThread::GetFrames()` method returns a

[Lldb-commits] [lldb] [lldb] Add function to tell if a section is a GOT section (PR #165936)

2025-11-05 Thread Jonas Devlieghere via lldb-commits
https://github.com/JDevlieghere approved this pull request. https://github.com/llvm/llvm-project/pull/165936 ___ lldb-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

[Lldb-commits] [lldb] [LLDB] Make MSVC STL formatters work with (Native/DIA) PDB (PR #150513)

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

[Lldb-commits] [lldb] [LLDB] Make MSVC STL formatters work with (Native/DIA) PDB (PR #150513)

2025-11-05 Thread via lldb-commits
Nerixyz wrote: I'll split this in smaller PRs https://github.com/llvm/llvm-project/pull/150513 ___ lldb-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

[Lldb-commits] [lldb] [LLDB] Make MSVC STL formatters work with (Native/DIA) PDB (PR #150513)

2025-11-05 Thread via lldb-commits
https://github.com/Nerixyz updated https://github.com/llvm/llvm-project/pull/150513 >From 709ca11c5393864867812d26df7fcd7ee4462557 Mon Sep 17 00:00:00 2001 From: Nerixyz Date: Thu, 24 Jul 2025 21:38:26 +0200 Subject: [PATCH 1/8] fix(string): make spaces in matcher optional --- .../Language/CP

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

2025-11-05 Thread Greg Clayton via lldb-commits
https://github.com/clayborg approved this pull request. 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] Fix debuginfo ELF files overwriting Unified Section List (PR #166635)

2025-11-05 Thread Jacob Lalonde via lldb-commits
@@ -130,6 +130,42 @@ class ELFRelocation { RelocUnion reloc; }; + +lldb::SectionSP MergeSections(lldb::SectionSP lhs, lldb::SectionSP rhs) { + assert(lhs && rhs); + + // We only take the RHS is the LHS is SHT_NOBITS, which would be + // represented as a size of 0. Where w

[Lldb-commits] [clang] [lldb] Reland [MS][clang] Add support for vector deleting destructors (PR #165598)

2025-11-05 Thread Eli Friedman via lldb-commits
@@ -8281,3 +8281,53 @@ void CodeGenModule::moveLazyEmissionStates(CodeGenModule *NewBuilder) { NewBuilder->ABI->MangleCtx = std::move(ABI->MangleCtx); } + +bool CodeGenModule::classNeedsVectorDestructor(const CXXRecordDecl *RD) { + if (!Context.getTargetInfo().emitVectorDe

[Lldb-commits] [lldb] [lldb] Support arbitrary precision integer registers (PR #166363)

2025-11-05 Thread Matej Košík via lldb-commits
https://github.com/sedymrak updated https://github.com/llvm/llvm-project/pull/166363 From de6f9a818d4210bc4838e6cebc3645167d660ca5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matej=20Ko=C5=A1=C3=ADk?= Date: Fri, 31 Oct 2025 18:12:18 +0100 Subject: [PATCH 01/11] [lldb] reorganize existing tests (in

[Lldb-commits] [lldb] [LLDB] Fix debuginfo ELF files overwriting Unified Section List (PR #166635)

2025-11-05 Thread Greg Clayton via lldb-commits
@@ -1967,10 +2003,11 @@ void ObjectFileELF::CreateSections(SectionList &unified_section_list) { provider.AddSection(std::move(*InfoOr), std::move(section_sp)); } - // For eTypeDebugInfo files, the Symbol Vendor will take care of updating the - // unified section list.

[Lldb-commits] [lldb] [LLDB] Fix debuginfo ELF files overwriting Unified Section List (PR #166635)

2025-11-05 Thread Greg Clayton via lldb-commits
@@ -130,6 +130,42 @@ class ELFRelocation { RelocUnion reloc; }; + +lldb::SectionSP MergeSections(lldb::SectionSP lhs, lldb::SectionSP rhs) { + assert(lhs && rhs); + + // We only take the RHS is the LHS is SHT_NOBITS, which would be + // represented as a size of 0. Where w

[Lldb-commits] [lldb] [LLDB] Fix debuginfo ELF files overwriting Unified Section List (PR #166635)

2025-11-05 Thread Greg Clayton via lldb-commits
@@ -130,6 +130,42 @@ class ELFRelocation { RelocUnion reloc; }; + +lldb::SectionSP MergeSections(lldb::SectionSP lhs, lldb::SectionSP rhs) { + assert(lhs && rhs); + + // We only take the RHS is the LHS is SHT_NOBITS, which would be + // represented as a size of 0. Where w

[Lldb-commits] [lldb] [LLDB] Fix debuginfo ELF files overwriting Unified Section List (PR #166635)

2025-11-05 Thread Greg Clayton via lldb-commits
@@ -683,6 +683,34 @@ uint64_t SectionList::GetDebugInfoSize() const { return debug_info_size; } +std::shared_ptr +SectionList::Merge(SectionList &lhs, SectionList &rhs, MergeCallback filter) { + std::shared_ptr output_sp = std::make_shared(); + + // Iterate through all the

[Lldb-commits] [lldb] [LLDB] Fix debuginfo ELF files overwriting Unified Section List (PR #166635)

2025-11-05 Thread Greg Clayton via lldb-commits
@@ -96,6 +96,17 @@ class SectionList { /// information. uint64_t GetDebugInfoSize() const; + // Callback to decide which of two matching sections should be used in the + // merged output. + using MergeCallback = + std::function; + + // Function that merges two dif

[Lldb-commits] [lldb] [LLDB] Fix debuginfo ELF files overwriting Unified Section List (PR #166635)

2025-11-05 Thread Greg Clayton via lldb-commits
@@ -683,6 +683,34 @@ uint64_t SectionList::GetDebugInfoSize() const { return debug_info_size; } +std::shared_ptr clayborg wrote: Just return a `SectionList`. No need to water it down to a shared pointer to a section list. You can use move semenatics on the

[Lldb-commits] [lldb] [LLDB] Fix debuginfo ELF files overwriting Unified Section List (PR #166635)

2025-11-05 Thread Greg Clayton via lldb-commits
https://github.com/clayborg requested changes to this pull request. See inlined comments. https://github.com/llvm/llvm-project/pull/166635 ___ lldb-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-co

[Lldb-commits] [lldb] [LLDB] Fix debuginfo ELF files overwriting Unified Section List (PR #166635)

2025-11-05 Thread Greg Clayton via lldb-commits
@@ -683,6 +683,34 @@ uint64_t SectionList::GetDebugInfoSize() const { return debug_info_size; } +std::shared_ptr +SectionList::Merge(SectionList &lhs, SectionList &rhs, MergeCallback filter) { + std::shared_ptr output_sp = std::make_shared(); + + // Iterate through all the

[Lldb-commits] [lldb] [LLDB] Fix debuginfo ELF files overwriting Unified Section List (PR #166635)

2025-11-05 Thread Greg Clayton via lldb-commits
https://github.com/clayborg edited https://github.com/llvm/llvm-project/pull/166635 ___ lldb-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

[Lldb-commits] [clang] [lldb] Reland [MS][clang] Add support for vector deleting destructors (PR #165598)

2025-11-05 Thread Eli Friedman via lldb-commits
@@ -8281,3 +8281,53 @@ void CodeGenModule::moveLazyEmissionStates(CodeGenModule *NewBuilder) { NewBuilder->ABI->MangleCtx = std::move(ABI->MangleCtx); } + +bool CodeGenModule::classNeedsVectorDestructor(const CXXRecordDecl *RD) { + if (!Context.getTargetInfo().emitVectorDe

[Lldb-commits] [clang] [lldb] Reland [MS][clang] Add support for vector deleting destructors (PR #165598)

2025-11-05 Thread Eli Friedman via lldb-commits
@@ -1206,6 +1206,9 @@ void CodeGenFunction::EmitNewArrayInitializer( EmitCXXAggrConstructorCall(Ctor, NumElements, CurPtr, CCE, /*NewPointerIsChecked*/true, CCE->requiresZeroInitialization()); +if (CGM.getCon

[Lldb-commits] [clang] [lldb] Reland [MS][clang] Add support for vector deleting destructors (PR #165598)

2025-11-05 Thread Eli Friedman via lldb-commits
@@ -370,6 +370,18 @@ class ASTContext : public RefCountedBase { mutable llvm::DenseSet DestroyingOperatorDeletes; mutable llvm::DenseSet TypeAwareOperatorNewAndDeletes; + /// Global and array operators delete are only required for MSVC deleting + /// destructors support.

[Lldb-commits] [clang] [lldb] Reland [MS][clang] Add support for vector deleting destructors (PR #165598)

2025-11-05 Thread Eli Friedman via lldb-commits
@@ -150,7 +150,7 @@ class VTableComponent { bool isRTTIKind() const { return isRTTIKind(getKind()); } - GlobalDecl getGlobalDecl() const { + GlobalDecl getGlobalDecl(bool HasVectorDeletingDtors) const { efriedma-quic wrote: Oh, I see. I guess this is ok

[Lldb-commits] [clang] [lldb] Reland [MS][clang] Add support for vector deleting destructors (PR #165598)

2025-11-05 Thread Eli Friedman via lldb-commits
@@ -3146,7 +3198,8 @@ bool CXXDestructorDecl::isCalledByDelete(const FunctionDecl *OpDel) const { // delete operator, as that destructor is never called, unless the // destructor is virtual (see [expr.delete]p8.1) because then the // selected operator depends on the dyna

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

2025-11-05 Thread via lldb-commits
https://github.com/GeorgeHuyubo edited 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] Enable locate module callback for main executable (PR #160199)

2025-11-05 Thread via lldb-commits
@@ -767,9 +763,18 @@ Platform::ResolveExecutable(const ModuleSpec &module_spec, Status error; for (const ArchSpec &arch : GetSupportedArchitectures(process_host_arch)) { resolved_module_spec.GetArchitecture() = arch; -error = -ModuleList::GetSharedModule(res

[Lldb-commits] [lldb] [lldb] Introduce ScriptedFrameProvider for real threads (PR #161870)

2025-11-05 Thread Med Ismail Bennani via lldb-commits
@@ -0,0 +1,232 @@ +//===-- ScriptedFrameProvider.cpp ===// +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier: Apac

[Lldb-commits] [lldb] [lldb] Add function to tell if a section is a GOT section (PR #165936)

2025-11-05 Thread Augusto Noronha via lldb-commits
https://github.com/augusto2112 updated https://github.com/llvm/llvm-project/pull/165936 >From d11242a7d050f5ad5187a088768a269ccebcbd2e Mon Sep 17 00:00:00 2001 From: Augusto Noronha Date: Fri, 24 Oct 2025 14:12:48 -0700 Subject: [PATCH 1/2] [lldb] Add function to tell if a section is a GOT sect

[Lldb-commits] [lldb] [lldb] Add function to tell if a section is a GOT section (PR #165936)

2025-11-05 Thread Augusto Noronha via lldb-commits
augusto2112 wrote: > Does this same issue need to be handled on Linux / ObjectFileELF? For my purposes I only need this for Mach-O since this is specific to the shared cache, but the interface is open to being implemented for ELF if someone else ever needs it. https://github.com/llvm/llvm-pro

[Lldb-commits] [lldb] [LLDB] Fix debuginfo ELF files overwriting Unified Section List (PR #166635)

2025-11-05 Thread Jacob Lalonde via lldb-commits
https://github.com/Jlalond updated https://github.com/llvm/llvm-project/pull/166635 >From d0ca47b7bde844f1ab8543da4f832ad875ff643e Mon Sep 17 00:00:00 2001 From: Jacob Lalonde Date: Fri, 31 Oct 2025 15:55:02 -0700 Subject: [PATCH 1/7] Add static function to SectionList to support merging, and

[Lldb-commits] [lldb] [lldb] Add function to tell if a section is a GOT section (PR #165936)

2025-11-05 Thread Augusto Noronha via lldb-commits
augusto2112 wrote: > Seems reasonable and straightforward. What does the swift plugin do with this > information? The shared cache can unique pointers in the GOT sections and null the original pointers, and when parsing Swift metadata, LLDB needs to know when translating a file address into a

[Lldb-commits] [lldb] [LLDB] Fix debuginfo ELF files overwriting Unified Section List (PR #166635)

2025-11-05 Thread Jacob Lalonde via lldb-commits
https://github.com/Jlalond edited https://github.com/llvm/llvm-project/pull/166635 ___ lldb-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

[Lldb-commits] [lldb] [LLDB] Fix debuginfo ELF files overwriting Unified Section List (PR #166635)

2025-11-05 Thread Jacob Lalonde via lldb-commits
https://github.com/Jlalond updated https://github.com/llvm/llvm-project/pull/166635 >From d0ca47b7bde844f1ab8543da4f832ad875ff643e Mon Sep 17 00:00:00 2001 From: Jacob Lalonde Date: Fri, 31 Oct 2025 15:55:02 -0700 Subject: [PATCH 1/7] Add static function to SectionList to support merging, and

[Lldb-commits] [lldb] [LLDB] Fix debuginfo ELF files overwriting Unified Section List (PR #166635)

2025-11-05 Thread Jacob Lalonde via lldb-commits
https://github.com/Jlalond updated https://github.com/llvm/llvm-project/pull/166635 >From d0ca47b7bde844f1ab8543da4f832ad875ff643e Mon Sep 17 00:00:00 2001 From: Jacob Lalonde Date: Fri, 31 Oct 2025 15:55:02 -0700 Subject: [PATCH 1/6] Add static function to SectionList to support merging, and

[Lldb-commits] [lldb] [LLDB] Fix debuginfo ELF files overwriting Unified Section List (PR #166635)

2025-11-05 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 origin/main...HEAD lldb/test/API/python_api/unified_section_list/TestModuleUnifiedSectionL

[Lldb-commits] [lldb] [LLDB] Fix debuginfo ELF files overwriting Unified Section List (PR #166635)

2025-11-05 Thread Jacob Lalonde via lldb-commits
https://github.com/Jlalond updated https://github.com/llvm/llvm-project/pull/166635 >From d0ca47b7bde844f1ab8543da4f832ad875ff643e Mon Sep 17 00:00:00 2001 From: Jacob Lalonde Date: Fri, 31 Oct 2025 15:55:02 -0700 Subject: [PATCH 1/5] Add static function to SectionList to support merging, and

[Lldb-commits] [lldb] [LLDB] Fix debuginfo ELF files overwriting Unified Section List (PR #166635)

2025-11-05 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 h,cpp -- lldb/test/API/python_api/unified_section_list/

[Lldb-commits] [lldb] [lldb] Introduce ScriptedFrameProvider for real threads (PR #161870)

2025-11-05 Thread Med Ismail Bennani via lldb-commits
@@ -1439,13 +1445,59 @@ void Thread::CalculateExecutionContext(ExecutionContext &exe_ctx) { StackFrameListSP Thread::GetStackFrameList() { std::lock_guard guard(m_frame_mutex); - if (!m_curr_frames_sp) -m_curr_frames_sp = -std::make_shared(*this, m_prev_frames_

[Lldb-commits] [lldb] Fix lldb-dap non-leaf frame source resolution issue (PR #165944)

2025-11-05 Thread via lldb-commits
https://github.com/jeffreytan81 updated https://github.com/llvm/llvm-project/pull/165944 >From 0f9f57ffb0bcdfb0ac8706a545c23c8160dc4de1 Mon Sep 17 00:00:00 2001 From: Jeffrey Tan Date: Fri, 31 Oct 2025 17:12:00 -0700 Subject: [PATCH 1/2] Fix lldb-dap non-leaf frame source resolution issue ---

[Lldb-commits] [lldb] Fix lldb-dap non-leaf frame source resolution issue (PR #165944)

2025-11-05 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 c,h,cpp -- lldb/test/API/tools/lldb-dap/stackTraceCompi

[Lldb-commits] [clang] [lldb] [Clang][LLDB] Refactor trap reason demangling out of LLDB and into Clang (PR #165996)

2025-11-05 Thread LLVM Continuous Integration via lldb-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `clang-ppc64le-linux-test-suite` running on `ppc64le-clang-test-suite` while building `clang,lldb` at step 6 "test-build-unified-tree-check-all". Full details are available at: https://lab.llvm.org/buildbot/#/builders/95/build

[Lldb-commits] [lldb] Fix lldb-dap non-leaf frame source resolution issue (PR #165944)

2025-11-05 Thread via lldb-commits
https://github.com/jeffreytan81 updated https://github.com/llvm/llvm-project/pull/165944 >From 0f9f57ffb0bcdfb0ac8706a545c23c8160dc4de1 Mon Sep 17 00:00:00 2001 From: Jeffrey Tan Date: Fri, 31 Oct 2025 17:12:00 -0700 Subject: [PATCH 1/2] Fix lldb-dap non-leaf frame source resolution issue ---

[Lldb-commits] [lldb] Fix lldb-dap non-leaf frame source resolution issue (PR #165944)

2025-11-05 Thread via lldb-commits
jeffreytan81 wrote: @da-viper, thanks for sharing the idea! I will add the test. My only concern is that the source line after the `bar()` call may not be the instruction after the call instruction, for example, compiler may emit extra code after call instruction. So this test depends on the

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

2025-11-05 Thread Greg Clayton via lldb-commits
https://github.com/clayborg requested changes to this pull request. 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] Enable locate module callback for main executable (PR #160199)

2025-11-05 Thread Greg Clayton via lldb-commits
@@ -1009,6 +1009,8 @@ class LLDB_API SBTarget { friend class SBValue; friend class SBVariablesOptions; + friend class SBModuleSpec; + clayborg wrote: move this right below the ``` friend class SBModule; ``` above with no extra spaces https://github.com

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

2025-11-05 Thread Greg Clayton via lldb-commits
@@ -767,9 +763,18 @@ Platform::ResolveExecutable(const ModuleSpec &module_spec, Status error; for (const ArchSpec &arch : GetSupportedArchitectures(process_host_arch)) { resolved_module_spec.GetArchitecture() = arch; -error = -ModuleList::GetSharedModule(res

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

2025-11-05 Thread Greg Clayton via lldb-commits
@@ -1122,10 +1140,17 @@ ModuleList::GetSharedModule(const ModuleSpec &module_spec, ModuleSP &module_sp, module_sp.reset(); } - if (module_search_paths_ptr) { -const auto num_directories = module_search_paths_ptr->GetSize(); + // Get module search paths from the ta

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

2025-11-05 Thread Greg Clayton via lldb-commits
@@ -767,9 +763,18 @@ Platform::ResolveExecutable(const ModuleSpec &module_spec, Status error; for (const ArchSpec &arch : GetSupportedArchitectures(process_host_arch)) { resolved_module_spec.GetArchitecture() = arch; -error = -ModuleList::GetSharedModule(res

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

2025-11-05 Thread John McCall via lldb-commits
rjmccall wrote: > > I understand that this doesn't _have_ to be seen as different. I am telling > > you that is practically useful to _make_ it different in order to enable > > incremental adoption of `__ob_trap`, because otherwise you cannot add > > `__ob_trap` to a parameter in order to forc

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

2025-11-05 Thread Aaron Ballman via lldb-commits
AaronBallman wrote: > > > Just to be clear, that's going to impact things like function overloading > > > (which we support in C as well as C++), type inspection via `_Generic`, > > > template type deduction in C++, etc. That's not an argument for or > > > against anything, just a reminder tha

[Lldb-commits] [lldb] fix parallel module loading deadlock for Linux DYLD (PR #166480)

2025-11-05 Thread Tom Yang via lldb-commits
zhyty wrote: > I wonder if instead of a boolean we should pass down a function that > schedules the module loading as suggested in #10746. > > That gives more flexibility in that we could immediately schedule the preload > to happen in parallel (as done in the other PR), or for your use case w

[Lldb-commits] [lldb] fix parallel module loading deadlock for Linux DYLD (PR #166480)

2025-11-05 Thread via lldb-commits
llvmbot wrote: @llvm/pr-subscribers-lldb Author: Tom Yang (zhyty) Changes Another attempt at resolving the deadlock issue @GeorgeHuyubo discovered (his previous [attempt](https://github.com/llvm/llvm-project/pull/160225)). This change can be summarized as the following: * Plumb throug

[Lldb-commits] [lldb] fix parallel module loading deadlock for Linux DYLD (PR #166480)

2025-11-05 Thread Tom Yang via lldb-commits
https://github.com/zhyty ready_for_review https://github.com/llvm/llvm-project/pull/166480 ___ lldb-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

[Lldb-commits] [lldb] fix parallel module loading deadlock for Linux DYLD (PR #166480)

2025-11-05 Thread Tom Yang via lldb-commits
https://github.com/zhyty edited https://github.com/llvm/llvm-project/pull/166480 ___ lldb-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

[Lldb-commits] [lldb] fix parallel module loading deadlock for Linux DYLD (PR #166480)

2025-11-05 Thread Tom Yang via lldb-commits
zhyty wrote: > I wonder if instead of a boolean we should pass down a function that > schedules the module loading as suggested in #10746. > > That gives more flexibility in that we could immediately schedule the preload > to happen in parallel (as done in the other PR), or for your use case w

[Lldb-commits] [lldb] fix parallel module loading deadlock for Linux DYLD (PR #166480)

2025-11-05 Thread Tom Yang via lldb-commits
https://github.com/zhyty edited https://github.com/llvm/llvm-project/pull/166480 ___ lldb-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

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

2025-11-05 Thread John McCall via lldb-commits
rjmccall wrote: > > Just to be clear, that's going to impact things like function overloading > > (which we support in C as well as C++), type inspection via `_Generic`, > > template type deduction in C++, etc. That's not an argument for or against > > anything, just a reminder that making the

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

2025-11-05 Thread John McCall via lldb-commits
rjmccall wrote: > This isn't different from: I understand that this doesn't *have* to be seen as different. I am telling you that is practically useful to *make* it different in order to enable incremental adoption of `__ob_trap`, because otherwise you cannot add `__ob_trap` to a parameter in

[Lldb-commits] [lldb] [lldb-dap] expand tilde in dap executable path (PR #162635)

2025-11-05 Thread Ebuka Ezike via lldb-commits
https://github.com/da-viper closed https://github.com/llvm/llvm-project/pull/162635 ___ lldb-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

[Lldb-commits] [lldb] 28a279c - [lldb-dap] expand tilde in dap executable path (#162635)

2025-11-05 Thread via lldb-commits
Author: Ebuka Ezike Date: 2025-11-05T19:07:34Z New Revision: 28a279ce14f913df71546d8201d5363682a75901 URL: https://github.com/llvm/llvm-project/commit/28a279ce14f913df71546d8201d5363682a75901 DIFF: https://github.com/llvm/llvm-project/commit/28a279ce14f913df71546d8201d5363682a75901.diff LOG: [

[Lldb-commits] [lldb] [lldb-dap] expand tilde in dap executable path (PR #162635)

2025-11-05 Thread Ebuka Ezike via lldb-commits
https://github.com/da-viper edited https://github.com/llvm/llvm-project/pull/162635 ___ lldb-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

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

2025-11-05 Thread Justin Stitt via lldb-commits
JustinStitt wrote: > Just to be clear, that's going to impact things like function overloading > (which we support in C as well as C++), type inspection via `_Generic`, > template type deduction in C++, etc. That's not an argument for or against > anything, just a reminder that making these tr

[Lldb-commits] [lldb] [debugserver] Fix debugserver build on < macOS 10.15 (PR #166599)

2025-11-05 Thread via lldb-commits
llvmbot wrote: /pull-request llvm/llvm-project#166614 https://github.com/llvm/llvm-project/pull/166599 ___ lldb-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

[Lldb-commits] [lldb] [debugserver] Fix debugserver build on < macOS 10.15 (PR #166599)

2025-11-05 Thread Jonas Devlieghere via lldb-commits
https://github.com/JDevlieghere closed https://github.com/llvm/llvm-project/pull/166599 ___ lldb-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

[Lldb-commits] [lldb] bc55f4f - [debugserver] Fix debugserver build on < macOS 10.15 (#166599)

2025-11-05 Thread via lldb-commits
Author: Jonas Devlieghere Date: 2025-11-05T18:32:38Z New Revision: bc55f4f4f2b4ef196cf3ec25f69dfbd9cd032237 URL: https://github.com/llvm/llvm-project/commit/bc55f4f4f2b4ef196cf3ec25f69dfbd9cd032237 DIFF: https://github.com/llvm/llvm-project/commit/bc55f4f4f2b4ef196cf3ec25f69dfbd9cd032237.diff

[Lldb-commits] [lldb] [lldb] Implement DW_CFA_val_offset and DW_CFA_val_offset_sf (PR #150732)

2025-11-05 Thread Daniel Sanders via lldb-commits
dsandersllvm wrote: /cherry-pick c455c4e https://github.com/llvm/llvm-project/pull/150732 ___ lldb-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

[Lldb-commits] [lldb] [lldb] Implement DW_CFA_val_offset and DW_CFA_val_offset_sf (PR #150732)

2025-11-05 Thread Daniel Sanders via lldb-commits
https://github.com/dsandersllvm milestoned https://github.com/llvm/llvm-project/pull/150732 ___ lldb-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

[Lldb-commits] [lldb] [debugserver] Fix debugserver build on < macOS 10.15 (PR #166599)

2025-11-05 Thread Jonas Devlieghere via lldb-commits
https://github.com/JDevlieghere updated https://github.com/llvm/llvm-project/pull/166599 >From 2d31f199cc9ac0c5899e9888db29db9752ef6206 Mon Sep 17 00:00:00 2001 From: Jonas Devlieghere Date: Wed, 5 Nov 2025 09:47:51 -0800 Subject: [PATCH] [debugserver] Fix debugserver build on < macOS 10.15 Th

[Lldb-commits] [lldb] [LLDB][NativePDB] Add non-overlapping fields in root struct (PR #166243)

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

[Lldb-commits] [lldb] 3c162ba - [LLDB][NativePDB] Add non-overlapping fields in root struct (#166243)

2025-11-05 Thread via lldb-commits
Author: nerix Date: 2025-11-05T19:07:44+01:00 New Revision: 3c162ba247d30c9d8113e66fe5d96e24156ce797 URL: https://github.com/llvm/llvm-project/commit/3c162ba247d30c9d8113e66fe5d96e24156ce797 DIFF: https://github.com/llvm/llvm-project/commit/3c162ba247d30c9d8113e66fe5d96e24156ce797.diff LOG: [L

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

2025-11-05 Thread Justin Stitt via lldb-commits
JustinStitt wrote: Pinging @kees as he might have concerns with the first 80% of your comment but for me this part was interesting: @rjmccall > There was a secondary discussion about whether OBTs should be part of the > signature of the function for the purposes of overloading, mangling, and s

[Lldb-commits] [libcxxabi] [lldb] [llvm] [libcxxabi][ItaniumDemangle] Separate GtIsGt counter into more states (PR #166578)

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

[Lldb-commits] [lldb] [debugserver] Fix debugserver build on < macOS 10.15 (PR #166599)

2025-11-05 Thread Jonas Devlieghere via lldb-commits
https://github.com/JDevlieghere updated https://github.com/llvm/llvm-project/pull/166599 >From 2d31f199cc9ac0c5899e9888db29db9752ef6206 Mon Sep 17 00:00:00 2001 From: Jonas Devlieghere Date: Wed, 5 Nov 2025 09:47:51 -0800 Subject: [PATCH] [debugserver] Fix debugserver build on < macOS 10.15 Th

[Lldb-commits] [lldb] [debugserver] Fix debugserver build on < macOS 10.15 (PR #166599)

2025-11-05 Thread Jonas Devlieghere via lldb-commits
https://github.com/JDevlieghere auto_merge_enabled https://github.com/llvm/llvm-project/pull/166599 ___ lldb-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

[Lldb-commits] [lldb] [debugserver] Fix debugserver build on < macOS 10.15 (PR #166599)

2025-11-05 Thread Felipe de Azevedo Piovezan via lldb-commits
https://github.com/felipepiovezan approved this pull request. Thanks for catching this! https://github.com/llvm/llvm-project/pull/166599 ___ lldb-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-comm

  1   2   >