[Lldb-commits] [lldb] [lldb] Avoid a crash after selecting an unknown platform (PR #151803)

2025-08-01 Thread via lldb-commits
llvmbot wrote: @llvm/pr-subscribers-lldb Author: Igor Kudrin (igorkudrin) Changes `PlatformList::Create()` added an item in the list even if `Platform::Create()` returned `nullptr`. Other methods use items of the list without checking, which can lead to a crash. For example: ``` > lldb

[Lldb-commits] [lldb] [lldb] Avoid a crash after selecting an unknown platform (PR #151803)

2025-08-01 Thread Igor Kudrin via lldb-commits
https://github.com/igorkudrin created https://github.com/llvm/llvm-project/pull/151803 `PlatformList::Create()` added an item in the list even if `Platform::Create()` returned `nullptr`. Other methods use items of the list without checking, which can lead to a crash. For example: ``` > lldb (

[Lldb-commits] [clang] [clang-tools-extra] [lldb] NFC: Clean up of IntrusiveRefCntPtr construction from raw pointers. (PR #151782)

2025-08-01 Thread LLVM Continuous Integration via lldb-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `sanitizer-x86_64-linux-fast` running on `sanitizer-buildbot4` while building `clang-tools-extra,clang,lldb` at step 2 "annotate". Full details are available at: https://lab.llvm.org/buildbot/#/builders/169/builds/13549 Here

[Lldb-commits] [clang] [clang-tools-extra] [lldb] NFC: Clean up of IntrusiveRefCntPtr construction from raw pointers. (PR #151782)

2025-08-01 Thread LLVM Continuous Integration via lldb-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `clang-m68k-linux-cross` running on `suse-gary-m68k-cross` while building `clang-tools-extra,clang,lldb` at step 5 "ninja check 1". Full details are available at: https://lab.llvm.org/buildbot/#/builders/27/builds/13997 Here

[Lldb-commits] [clang] [clang-tools-extra] [lldb] NFC: Clean up of IntrusiveRefCntPtr construction from raw pointers. (PR #151782)

2025-08-01 Thread James Y Knight via lldb-commits
https://github.com/jyknight closed https://github.com/llvm/llvm-project/pull/151782 ___ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

[Lldb-commits] [lldb] [lldb] Eliminate InitializePythonRAII::InitializeThreadsPrivate (NFC) (PR #151780)

2025-08-01 Thread Med Ismail Bennani via lldb-commits
@@ -137,7 +137,16 @@ struct InitializePythonRAII { config.install_signal_handlers = 0; Py_InitializeFromConfig(&config); PyConfig_Clear(&config); -InitializeThreadsPrivate(); + +// The only case we should go further and acquire the GIL: it is unlocked. +

[Lldb-commits] [lldb] 4d1ae58 - [lldb] Reimplment PyRun_SimpleString using the Python stable C API (#151777)

2025-08-01 Thread via lldb-commits
Author: Jonas Devlieghere Date: 2025-08-01T16:18:24-07:00 New Revision: 4d1ae58d9e1d679cd0f35ce935579df221b14882 URL: https://github.com/llvm/llvm-project/commit/4d1ae58d9e1d679cd0f35ce935579df221b14882 DIFF: https://github.com/llvm/llvm-project/commit/4d1ae58d9e1d679cd0f35ce935579df221b14882.d

[Lldb-commits] [lldb] [lldb] Reimplment PyRun_SimpleString using the Python stable C API (PR #151777)

2025-08-01 Thread Jonas Devlieghere via lldb-commits
https://github.com/JDevlieghere closed https://github.com/llvm/llvm-project/pull/151777 ___ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

[Lldb-commits] [lldb] [lldb] Eliminate InitializePythonRAII::InitializeThreadsPrivate (NFC) (PR #151780)

2025-08-01 Thread Jonas Devlieghere via lldb-commits
JDevlieghere wrote: This is in preparation for eliminating the call to `PyGILState_Check` and calling `PyGILState_Ensure` directly as part of https://github.com/llvm/llvm-project/issues/151617. https://github.com/llvm/llvm-project/pull/151780 ___ ll

[Lldb-commits] [lldb] [lldb] Eliminate InitializePythonRAII::InitializeThreadsPrivate (NFC) (PR #151780)

2025-08-01 Thread via lldb-commits
llvmbot wrote: @llvm/pr-subscribers-lldb Author: Jonas Devlieghere (JDevlieghere) Changes The behavior of thread initialization changed in Python 3.7. The minimum supported Python version is now 3.8. That means that `PyEval_ThreadsInitialized` always returns true and `PyEval_InitThreads`

[Lldb-commits] [lldb] [lldb] Eliminate InitializePythonRAII::InitializeThreadsPrivate (NFC) (PR #151780)

2025-08-01 Thread Jonas Devlieghere via lldb-commits
https://github.com/JDevlieghere created https://github.com/llvm/llvm-project/pull/151780 The behavior of thread initialization changed in Python 3.7. The minimum supported Python version is now 3.8. That means that `PyEval_ThreadsInitialized` always returns true and `PyEval_InitThreads` is ne

[Lldb-commits] [lldb] [lldb] Reimplment PyRun_SimpleString using the Python stable C API (PR #151777)

2025-08-01 Thread Med Ismail Bennani via lldb-commits
https://github.com/medismailben approved this pull request. LGTM https://github.com/llvm/llvm-project/pull/151777 ___ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

[Lldb-commits] [clang] [libcxxabi] [lldb] [llvm] [DRAFT] [lldb][Expression] Add structor variant to LLDB's function call labels (PR #149827)

2025-08-01 Thread Michael Buch via lldb-commits
https://github.com/Michael137 updated https://github.com/llvm/llvm-project/pull/149827 >From 9ec9eefb23b0676bcb89c195d96e5a2e1d6c615f Mon Sep 17 00:00:00 2001 From: Michael Buch Date: Fri, 1 Aug 2025 11:04:47 +0100 Subject: [PATCH] Structors init --- clang/include/clang/Basic/Attr.td

[Lldb-commits] [lldb] [lldb][rpc] Fix build failures when building lldb-rpc-gen (PR #151603)

2025-08-01 Thread Chelsea Cassanova via lldb-commits
chelcassanova wrote: > Your initial attempts seem quite close to actually getting this right > (already attempting to use get_host_tool_path etc), but both the initial > attempt and this one missed one subtle detail: The cmake functions > get_host_tool_path and setup_host_tool do take a cmake

[Lldb-commits] [lldb] [lldb] Fix incorrect conversion from boolean in RegisterContextThreadMemory (PR #151767)

2025-08-01 Thread via lldb-commits
https://github.com/jimingham approved this pull request. LGTM https://github.com/llvm/llvm-project/pull/151767 ___ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

[Lldb-commits] [lldb] [lldb] Fix incorrect conversion from boolean in RegisterContextThreadMemory (PR #151767)

2025-08-01 Thread Felipe de Azevedo Piovezan via lldb-commits
https://github.com/felipepiovezan created https://github.com/llvm/llvm-project/pull/151767 The method ConvertRegisterKindToRegisterNumber should return INVALID_REGNUM, and not "false" upon failure: false would mean 0 which is usually the number for generic PC. Likewise, NumSupportedHardwareB

[Lldb-commits] [lldb] [lldb][rpc] Upstream RPC Client Library Emitters (PR #147655)

2025-08-01 Thread Chelsea Cassanova via lldb-commits
https://github.com/chelcassanova updated https://github.com/llvm/llvm-project/pull/147655 >From ebde09ab545148230e7284cf8a934ae9e9a8fc3b Mon Sep 17 00:00:00 2001 From: Chelsea Cassanova Date: Thu, 24 Jul 2025 14:05:55 -0700 Subject: [PATCH 1/4] [lldb][rpc] Add RPC client library tests Adds she

[Lldb-commits] [lldb] [lldb] Reimplment PyRun_String using the Python stable C API (PR #151761)

2025-08-01 Thread Jonas Devlieghere via lldb-commits
https://github.com/JDevlieghere updated https://github.com/llvm/llvm-project/pull/151761 >From cb8d0d2f28a736c6c4808e73f1f60103ee535478 Mon Sep 17 00:00:00 2001 From: Jonas Devlieghere Date: Fri, 1 Aug 2025 12:48:47 -0700 Subject: [PATCH] [lldb] Reimplment PyRun_String using the Python stable C

[Lldb-commits] [lldb] [lldb] Reimplment PyRun_String using the Python stable C API (PR #151761)

2025-08-01 Thread Jonas Devlieghere via lldb-commits
https://github.com/JDevlieghere updated https://github.com/llvm/llvm-project/pull/151761 >From 80affa33bba14616f21da6bdad6fc6fb8b7048ed Mon Sep 17 00:00:00 2001 From: Jonas Devlieghere Date: Fri, 1 Aug 2025 12:48:47 -0700 Subject: [PATCH] [lldb] Reimplment PyRun_String using the Python stable C

[Lldb-commits] [lldb] [lldb] Reimplment PyRun_String using the Python stable C API (PR #151761)

2025-08-01 Thread via lldb-commits
llvmbot wrote: @llvm/pr-subscribers-lldb Author: Jonas Devlieghere (JDevlieghere) Changes Reimplement `PyRun_String` using `Py_CompileString` and` PyEval_EvalCode`, which are part of the stable C API. Part of #151617 --- Full diff: https://github.com/llvm/llvm-project/pull/151761.diff

[Lldb-commits] [lldb] [lldb] Ensure that TestMemoryCache.py reads allocated memory (PR #151635)

2025-08-01 Thread Igor Kudrin via lldb-commits
https://github.com/igorkudrin closed https://github.com/llvm/llvm-project/pull/151635 ___ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

[Lldb-commits] [lldb] 55c2b27 - [lldb] Ensure that TestMemoryCache.py reads allocated memory (#151635)

2025-08-01 Thread via lldb-commits
Author: Igor Kudrin Date: 2025-08-01T12:51:59-07:00 New Revision: 55c2b273ea5d3b949c6431d429a4da20612d9808 URL: https://github.com/llvm/llvm-project/commit/55c2b273ea5d3b949c6431d429a4da20612d9808 DIFF: https://github.com/llvm/llvm-project/commit/55c2b273ea5d3b949c6431d429a4da20612d9808.diff L

[Lldb-commits] [lldb] [lldb] Reimplment PyRun_String using the Python stable C API (PR #151761)

2025-08-01 Thread Jonas Devlieghere via lldb-commits
https://github.com/JDevlieghere created https://github.com/llvm/llvm-project/pull/151761 Reimplement `PyRun_String` using `Py_CompileString` and` PyEval_EvalCode`, which are part of the stable C API. Part of #151617 >From 8fe60ddc943421af3039d136cd2e3ac38c8347f4 Mon Sep 17 00:00:00 2001 From:

[Lldb-commits] [lldb] [lldb] Ensure that TestMemoryCache.py reads allocated memory (PR #151635)

2025-08-01 Thread Igor Kudrin via lldb-commits
igorkudrin wrote: Thanks! > There will be a few registers in each frame to cover the last 1 integer. I counted `my_ints` itself for this last 1 integer. Yes, there are some registers stored in the past frames, but there is no point in guessing how many. https://github.com/llvm/llvm-project/pu

[Lldb-commits] [lldb] [lldb] Add `ValueObject::CreateValueObjectFromScalar` and fix `Scalar::GetData` (PR #151350)

2025-08-01 Thread Ilia Kuklin via lldb-commits
kuilpd wrote: @labath What are your thoughts? https://github.com/llvm/llvm-project/pull/151350 ___ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

[Lldb-commits] [lldb] [LLDB] Add setting for native PDB reader (PR #151490)

2025-08-01 Thread Jonas Devlieghere via lldb-commits
https://github.com/JDevlieghere approved this pull request. https://github.com/llvm/llvm-project/pull/151490 ___ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

[Lldb-commits] [lldb] [LLDB] Add setting for native PDB reader (PR #151490)

2025-08-01 Thread Jonas Devlieghere via lldb-commits
JDevlieghere wrote: It's also kind of weird that we have `SymbolFilePDB` and `SymbolFileNativePDB` with one initializing the other. It seems like we should have a pure virtual SymbolFilePDB and then a `SymbolFileNativePDB` and a `SymbolFileDIAPDB`. Anyway, I'd still like to get rid of the DIA

[Lldb-commits] [lldb] [LLDB] Add setting for native PDB reader (PR #151490)

2025-08-01 Thread Jonas Devlieghere via lldb-commits
JDevlieghere wrote: > Is this the current behavior? In my understanding, both plugins are mostly > independent. The DIA PDB parser only brings in the native PDB parser to > initialize it. It doesn't instantiate it to resolve a type. It's possible I'm misremembering this. In the PR that removes

[Lldb-commits] [lldb] Logging setup for lldb-dap extension (PR #146884)

2025-08-01 Thread Jonas Devlieghere via lldb-commits
https://github.com/JDevlieghere approved this pull request. LGTM! https://github.com/llvm/llvm-project/pull/146884 ___ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

[Lldb-commits] [lldb] Logging setup for lldb-dap extension (PR #146884)

2025-08-01 Thread Jonas Devlieghere via lldb-commits
https://github.com/JDevlieghere edited https://github.com/llvm/llvm-project/pull/146884 ___ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

[Lldb-commits] [lldb] Logging setup for lldb-dap extension (PR #146884)

2025-08-01 Thread Jonas Devlieghere via lldb-commits
@@ -62,8 +63,12 @@ export class DebugSessionTracker createDebugAdapterTracker( session: vscode.DebugSession, ): vscode.ProviderResult { +this.logger.info(`Starting debug session "${session.name}"`); +let stopping = false; return { + onError: (error) =>

[Lldb-commits] [lldb] [lldb][DWARFIndex][NFC] Change GetNamespace/GetGlobalVariables APIs to use IterationAction (PR #151668)

2025-08-01 Thread Adrian Prantl via lldb-commits
https://github.com/adrian-prantl approved this pull request. https://github.com/llvm/llvm-project/pull/151668 ___ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

[Lldb-commits] [lldb] [LLDB] Update SBMemoryRegionInfo doc strings to document len and str (PR #149903)

2025-08-01 Thread via lldb-commits
github-actions[bot] wrote: @barsolo2000 Congratulations on having your first Pull Request (PR) merged into the LLVM Project! Your changes will be combined with recent changes from other authors, then tested by our [build bots](https://lab.llvm.org/buildbot/). If there is a problem with a bu

[Lldb-commits] [lldb] [LLDB] Update SBMemoryRegionInfo doc strings to document len and str (PR #149903)

2025-08-01 Thread Jacob Lalonde via lldb-commits
https://github.com/Jlalond closed https://github.com/llvm/llvm-project/pull/149903 ___ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

[Lldb-commits] [lldb] 3d098f7 - [LLDB] Update SBMemoryRegionInfo doc strings to document len and str (#149903)

2025-08-01 Thread via lldb-commits
Author: barsolo2000 Date: 2025-08-01T09:36:48-07:00 New Revision: 3d098f78bfa82bfae5242402d4b8201b1ec38d06 URL: https://github.com/llvm/llvm-project/commit/3d098f78bfa82bfae5242402d4b8201b1ec38d06 DIFF: https://github.com/llvm/llvm-project/commit/3d098f78bfa82bfae5242402d4b8201b1ec38d06.diff L

[Lldb-commits] [clang] [lldb] [Clang] Initial support for P2841 (Variable template and concept template parameters) (PR #150823)

2025-08-01 Thread Erich Keane via lldb-commits
https://github.com/erichkeane approved this pull request. I think I'm good with this. No real other comments here. https://github.com/llvm/llvm-project/pull/150823 ___ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bi

[Lldb-commits] [clang] [lldb] [Clang] Initial support for P2841 (Variable template and concept template parameters) (PR #150823)

2025-08-01 Thread Corentin Jabot via lldb-commits
@@ -160,7 +160,7 @@ class alignas(8) InitializedEntity { struct VD { /// The VarDecl, FieldDecl, or BindingDecl being initialized. -ValueDecl *VariableOrMember; +NamedDecl *VariableOrMember; cor3ntin wrote: It was (after your feedback)! https:/

[Lldb-commits] [clang] [libcxxabi] [lldb] [llvm] [DRAFT] [lldb][Expression] Add structor variant to LLDB's function call labels (PR #149827)

2025-08-01 Thread Michael Buch via lldb-commits
https://github.com/Michael137 updated https://github.com/llvm/llvm-project/pull/149827 >From 499aa52ad1e2ffbbccf63b4a037597f94adad97f Mon Sep 17 00:00:00 2001 From: Michael Buch Date: Fri, 1 Aug 2025 11:04:47 +0100 Subject: [PATCH] Structors init --- clang/include/clang/Basic/Attr.td

[Lldb-commits] [lldb] Logging setup for lldb-dap extension (PR #146884)

2025-08-01 Thread John Harrison via lldb-commits
https://github.com/ashgti approved this pull request. LGTM! https://github.com/llvm/llvm-project/pull/146884 ___ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

[Lldb-commits] [lldb] [lldb] Replace Python APIs with their stable equivalent (PR #151618)

2025-08-01 Thread Jonas Devlieghere via lldb-commits
https://github.com/JDevlieghere closed https://github.com/llvm/llvm-project/pull/151618 ___ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

[Lldb-commits] [lldb] 5f2a8cd - [lldb] Replace Python APIs with their stable equivalent (#151618)

2025-08-01 Thread via lldb-commits
Author: Jonas Devlieghere Date: 2025-08-01T07:57:34-07:00 New Revision: 5f2a8cd9a685935726421fd28a42b61c303aef27 URL: https://github.com/llvm/llvm-project/commit/5f2a8cd9a685935726421fd28a42b61c303aef27 DIFF: https://github.com/llvm/llvm-project/commit/5f2a8cd9a685935726421fd28a42b61c303aef27.d

[Lldb-commits] [lldb] [LLDB] Update DIL handling of array subscripting. (PR #151605)

2025-08-01 Thread Ilia Kuklin via lldb-commits
@@ -69,17 +69,19 @@ def test_subscript(self): substrs=["expected 'r_square', got: <'.'"], ) -# Base should be a "pointer to T" and index should be of an integral type. -self.expect( -"frame var 'idx_1[0]'", -error=Tr

[Lldb-commits] [lldb] [LLDB] Update DIL handling of array subscripting. (PR #151605)

2025-08-01 Thread Ilia Kuklin via lldb-commits
@@ -323,47 +323,144 @@ Interpreter::Visit(const MemberOfNode *node) { m_expr, errMsg, node->GetLocation(), node->GetFieldName().size()); } + llvm::Expected Interpreter::Visit(const ArraySubscriptNode *node) { auto lhs_or_err = Evaluate(node->GetBase()); if (!lhs_

[Lldb-commits] [lldb] [lldb] Use std::optional::value_or (NFC) (PR #151629)

2025-08-01 Thread Kazu Hirata via lldb-commits
https://github.com/kazutakahirata closed https://github.com/llvm/llvm-project/pull/151629 ___ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

[Lldb-commits] [lldb] 33625f7 - [lldb] Use std::optional::value_or (NFC) (#151629)

2025-08-01 Thread via lldb-commits
Author: Kazu Hirata Date: 2025-08-01T07:02:06-07:00 New Revision: 33625f7cb395a3664b81f1327868828d2e51fa46 URL: https://github.com/llvm/llvm-project/commit/33625f7cb395a3664b81f1327868828d2e51fa46 DIFF: https://github.com/llvm/llvm-project/commit/33625f7cb395a3664b81f1327868828d2e51fa46.diff L

[Lldb-commits] [lldb] Logging setup for lldb-dap extension (PR #146884)

2025-08-01 Thread via lldb-commits
@@ -110,6 +110,11 @@ "additionalProperties": { "type": "string" } + }, + "lldb-dap.captureSessionLogs": { award999 wrote: @ashgti latest patch introduces a new `logFolder` setting https://github.com/llvm

[Lldb-commits] [lldb] [lldb-dap] support moduleId in the stackTrace response (PR #149774)

2025-08-01 Thread Ebuka Ezike via lldb-commits
https://github.com/da-viper closed https://github.com/llvm/llvm-project/pull/149774 ___ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

[Lldb-commits] [lldb] 0b9470b - [lldb-dap] support moduleId in the stackTrace response (#149774)

2025-08-01 Thread via lldb-commits
Author: woruyu Date: 2025-08-01T13:43:13+01:00 New Revision: 0b9470b329103bcdfe3578d99664974d2a53bf8d URL: https://github.com/llvm/llvm-project/commit/0b9470b329103bcdfe3578d99664974d2a53bf8d DIFF: https://github.com/llvm/llvm-project/commit/0b9470b329103bcdfe3578d99664974d2a53bf8d.diff LOG: [

[Lldb-commits] [lldb] [RISCV-LLDB] RISCV feature attribute support and allows overriding additional(default) feature (PR #147990)

2025-08-01 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 HEAD~1 HEAD --extensions cpp,h -- lldb/include/lldb/Utility/ArchSpec.h lldb/source/P

[Lldb-commits] [lldb] [lldb][rpc] Fix build failures when building lldb-rpc-gen (PR #151603)

2025-08-01 Thread Martin Storsjö via lldb-commits
mstorsjo wrote: Now I've had time to study lldb-rpc-gen a little bit closer... For myself and others, to clarify what lldb-rpc-gen does (as how command options flow into it that aren't immediately obvious): It is a tool that includes clang tooling libraries. It runs at the regular LLVM/LLDB bu

[Lldb-commits] [lldb] [lldb][rpc] Upstream RPC Client Library Emitters (PR #147655)

2025-08-01 Thread David Spickett via lldb-commits
@@ -0,0 +1,15 @@ +RUN: mkdir -p %t/server +RUN: mkdir -p %t/lib +RUN: %lldb-rpc-gen --output-dir=%t %S/../../Inputs/CheckSBPointer.h + +RUN: cat %t/lib/CheckSBPointer.cpp | FileCheck %s + +# Pointers to SB objects must be checked to +# see if they're null. If so, then a new object

[Lldb-commits] [lldb] [lldb][rpc] Upstream RPC Client Library Emitters (PR #147655)

2025-08-01 Thread David Spickett via lldb-commits
@@ -0,0 +1,124 @@ +#include "RPCLibraryHeaderEmitter.h" +#include "RPCCommon.h" + +#include "clang/AST/AST.h" +#include "clang/AST/Mangle.h" +#include "clang/Frontend/CompilerInstance.h" + +#include "llvm/ADT/StringRef.h" +#include "llvm/Support/ToolOutputFile.h" +#include "llvm/S

[Lldb-commits] [lldb] [lldb][rpc] Upstream RPC Client Library Emitters (PR #147655)

2025-08-01 Thread David Spickett via lldb-commits
https://github.com/DavidSpickett commented: Please go over the outstanding comments and make sure they have been done. I see several that have not. https://github.com/llvm/llvm-project/pull/147655 ___ lldb-commits mailing list lldb-commits@lists.llvm.

[Lldb-commits] [lldb] [lldb][rpc] Upstream RPC Client Library Emitters (PR #147655)

2025-08-01 Thread David Spickett via lldb-commits
@@ -0,0 +1,124 @@ +#include "RPCLibraryHeaderEmitter.h" +#include "RPCCommon.h" + +#include "clang/AST/AST.h" +#include "clang/AST/Mangle.h" +#include "clang/Frontend/CompilerInstance.h" + +#include "llvm/ADT/StringRef.h" +#include "llvm/Support/ToolOutputFile.h" +#include "llvm/S

[Lldb-commits] [lldb] [lldb][rpc] Upstream RPC Client Library Emitters (PR #147655)

2025-08-01 Thread David Spickett via lldb-commits
https://github.com/DavidSpickett edited https://github.com/llvm/llvm-project/pull/147655 ___ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

[Lldb-commits] [lldb] [lldb][Expression] Encode Module and DIE UIDs into function AsmLabels (PR #148877)

2025-08-01 Thread LLVM Continuous Integration via lldb-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `lldb-aarch64-windows` running on `linaro-armv8-windows-msvc-05` while building `lldb` at step 6 "test". Full details are available at: https://lab.llvm.org/buildbot/#/builders/141/builds/10514 Here is the relevant piece of

[Lldb-commits] [lldb] ebe6eba - [lldb][test] Un-XFAIL tail_call_frames tests on Linux arm/arm64

2025-08-01 Thread Michael Buch via lldb-commits
Author: Michael Buch Date: 2025-08-01T11:19:53+01:00 New Revision: ebe6eba62580592af7065a36b22d929c15291e9a URL: https://github.com/llvm/llvm-project/commit/ebe6eba62580592af7065a36b22d929c15291e9a DIFF: https://github.com/llvm/llvm-project/commit/ebe6eba62580592af7065a36b22d929c15291e9a.diff

[Lldb-commits] [lldb] [lldb] Use std::optional::value_or (NFC) (PR #151629)

2025-08-01 Thread David Spickett via lldb-commits
https://github.com/DavidSpickett approved this pull request. LGTM https://github.com/llvm/llvm-project/pull/151629 ___ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

[Lldb-commits] [lldb] [lldb] Ensure that TestMemoryCache.py reads allocated memory (PR #151635)

2025-08-01 Thread David Spickett via lldb-commits
https://github.com/DavidSpickett approved this pull request. LGTM I saw the same problem with another test case on Windows on Arm. In that case I was able to lower the amount of memory read, but here it needs to be some amount greater than the l2 cache line size which is 512: ``` def MemCach

[Lldb-commits] [lldb] [LLDB] Add setting for native PDB reader (PR #151490)

2025-08-01 Thread via lldb-commits
https://github.com/Nerixyz updated https://github.com/llvm/llvm-project/pull/151490 >From 5f1bd9e57120d5b6be0fbdaacfcbcea1a465c6a9 Mon Sep 17 00:00:00 2001 From: Nerixyz Date: Thu, 31 Jul 2025 12:29:05 +0200 Subject: [PATCH 1/2] [LLDB] Add setting for native PDB reader --- .../NativePDB/Symbo

[Lldb-commits] [clang] [libcxxabi] [lldb] [llvm] [DRAFT] [lldb][Expression] Add structor variant to LLDB's function call labels (PR #149827)

2025-08-01 Thread Michael Buch via lldb-commits
https://github.com/Michael137 updated https://github.com/llvm/llvm-project/pull/149827 >From 3f144195543f7b256242b126d3d803954ef62f2f Mon Sep 17 00:00:00 2001 From: Michael Buch Date: Fri, 1 Aug 2025 11:04:47 +0100 Subject: [PATCH] Structors init --- clang/include/clang/Basic/Attr.td

[Lldb-commits] [lldb] [LLDB] Add setting for native PDB reader (PR #151490)

2025-08-01 Thread via lldb-commits
Nerixyz wrote: > * keep the current behavior, which means `eDIAWithFallbackToNative` Is this the current behavior? In my understanding, both plugins are mostly independent. The DIA PDB parser only brings in the native PDB parser to initialize it. It doesn't instantiate it to resolve a type. R

[Lldb-commits] [lldb] [lldb] add software watchpoints support (PR #151195)

2025-08-01 Thread Anatoly Parshintsev via lldb-commits
aap-sc wrote: > Also, their Program Buffer is kind of interesting, Program buffer is for external debugger, unfortunately. https://github.com/llvm/llvm-project/pull/151195 ___ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.or

[Lldb-commits] [lldb] [lldb] add software watchpoints support (PR #151195)

2025-08-01 Thread Anatoly Parshintsev via lldb-commits
aap-sc wrote: @jasonmolenda > I may have skimmed the doc too quickly, but I didn't see a self-hosted side > to this spec, how is Linux going to support it? The debug specification describes two extensions `sdext` and `sdtrig` . `sdext` is for external debug (jtag and stuff), while `sdtrig` d

[Lldb-commits] [lldb] [lldb] Use std::optional::value_or (NFC) (PR #151629)

2025-08-01 Thread Tim Gymnich via lldb-commits
https://github.com/tgymnich approved this pull request. https://github.com/llvm/llvm-project/pull/151629 ___ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

[Lldb-commits] [lldb] 96d1178 - [lldb][test] Fix expected mangling for AsmLabel_CtorDtor test on Windows (again)

2025-08-01 Thread Michael Buch via lldb-commits
Author: Michael Buch Date: 2025-08-01T09:22:40+01:00 New Revision: 96d117859c1cc3fb81897d3d72f7c4692b7ee930 URL: https://github.com/llvm/llvm-project/commit/96d117859c1cc3fb81897d3d72f7c4692b7ee930 DIFF: https://github.com/llvm/llvm-project/commit/96d117859c1cc3fb81897d3d72f7c4692b7ee930.diff

[Lldb-commits] [lldb] [lldb][rpc] Fix build failures when building lldb-rpc-gen (PR #151603)

2025-08-01 Thread Martin Storsjö via lldb-commits
https://github.com/mstorsjo requested changes to this pull request. This doesn't yet work as it should. https://github.com/llvm/llvm-project/pull/151603 ___ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/li

[Lldb-commits] [lldb] [lldb][rpc] Fix build failures when building lldb-rpc-gen (PR #151603)

2025-08-01 Thread Martin Storsjö via lldb-commits
@@ -326,27 +326,19 @@ endif() # In a cross-compile build, we need to skip building the generated # lldb-rpc sources in the first phase of host build so that they can # get built using the just-built Clang toolchain in the second phase. -if (NOT DEFINED LLDB_CAN_USE_LLDB_RPC_SER

[Lldb-commits] [lldb] [lldb][rpc] Fix build failures when building lldb-rpc-gen (PR #151603)

2025-08-01 Thread Martin Storsjö via lldb-commits
https://github.com/mstorsjo edited https://github.com/llvm/llvm-project/pull/151603 ___ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

[Lldb-commits] [lldb] [lldb][rpc] Fix build failures when building lldb-rpc-gen (PR #151603)

2025-08-01 Thread Martin Storsjö via lldb-commits
@@ -18,6 +18,11 @@ add_lldb_tool(lldb-rpc-gen Support ) -if (NOT DEFINED LLDB_RPC_GEN_EXE) - set(LLDB_RPC_GEN_EXE $ CACHE STRING "Executable that generates lldb-rpc-server") +if (CMAKE_CROSSCOMPILING) + setup_host_tool(lldb-rpc-gen LLDB_RPC_GEN_EXE lldb_rpc_gen_exe

[Lldb-commits] [lldb] [lldb][rpc] Fix build failures when building lldb-rpc-gen (PR #151603)

2025-08-01 Thread Martin Storsjö via lldb-commits
@@ -18,6 +18,11 @@ add_lldb_tool(lldb-rpc-gen Support ) -if (NOT DEFINED LLDB_RPC_GEN_EXE) - set(LLDB_RPC_GEN_EXE $ CACHE STRING "Executable that generates lldb-rpc-server") +if (CMAKE_CROSSCOMPILING) + setup_host_tool(lldb-rpc-gen LLDB_RPC_GEN_EXE lldb_rpc_gen_exe

[Lldb-commits] [lldb] [lldb][DWARFIndex][NFC] Change GetNamespace/GetGlobalVariables APIs to use IterationAction (PR #151668)

2025-08-01 Thread Michael Buch via lldb-commits
https://github.com/Michael137 updated https://github.com/llvm/llvm-project/pull/151668 >From 6fa2b6e3acaeffd5fd55f46eded372944ba2c328 Mon Sep 17 00:00:00 2001 From: Michael Buch Date: Thu, 31 Jul 2025 14:50:59 +0100 Subject: [PATCH 1/2] Namespaces and global variables to IterationAction --- .

[Lldb-commits] [lldb] [lldb][DWARFIndex][NFC] Change GetNamespace/GetGlobalVariables APIs to use IterationAction (PR #151668)

2025-08-01 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 HEAD~1 HEAD --extensions h,cpp -- lldb/source/Plugins/SymbolFile/DWARF/AppleDWARFInde

[Lldb-commits] [lldb] [lldb][DWARFIndex][NFC] Change GetNamespace/GetGlobalVariables APIs to use IterationAction (PR #151668)

2025-08-01 Thread via lldb-commits
llvmbot wrote: @llvm/pr-subscribers-lldb Author: Michael Buch (Michael137) Changes Continuation from https://github.com/llvm/llvm-project/pull/151489 --- Patch is 22.60 KiB, truncated to 20.00 KiB below, full version: https://github.com/llvm/llvm-project/pull/151668.diff 9 Files Affec

[Lldb-commits] [lldb] [lldb][DWARFIndex][NFC] Change GetNamespace/GetGlobalVariables APIs to use IterationAction (PR #151668)

2025-08-01 Thread Michael Buch via lldb-commits
https://github.com/Michael137 created https://github.com/llvm/llvm-project/pull/151668 Continuation from https://github.com/llvm/llvm-project/pull/151489 >From 6fa2b6e3acaeffd5fd55f46eded372944ba2c328 Mon Sep 17 00:00:00 2001 From: Michael Buch Date: Thu, 31 Jul 2025 14:50:59 +0100 Subject: [P

[Lldb-commits] [lldb] [lldb][rpc] Fix build failures when building lldb-rpc-gen (PR #151603)

2025-08-01 Thread Martin Storsjö via lldb-commits
mstorsjo wrote: > On some cross compile builds, the tool is not correctly set and the command > that runs the tool has an empty path for the tool, causing the build to fail. I'd rather skip the "some" word here, this happens whenever cmake things we're cross compiling - it's not just an odd ca