[Lldb-commits] [lldb] Reland "[lldb][DWARF] Remove object_pointer from ParsedDWARFAttributes (#145065)" (PR #145126)

2025-06-20 Thread via lldb-commits
llvmbot wrote: @llvm/pr-subscribers-lldb Author: Michael Buch (Michael137) Changes This reverts commit 877511920dcf36463e06746d626e8876583a6abd. This fixes the `TestObjCInBlockVars.py` LLDB API test. The issue was that `GetCXXObjectParameter` wouldn't deduce the object parameter of Obje

[Lldb-commits] [lldb] Reland "[lldb][DWARF] Remove object_pointer from ParsedDWARFAttributes (#145065)" (PR #145126)

2025-06-20 Thread Michael Buch via lldb-commits
https://github.com/Michael137 created https://github.com/llvm/llvm-project/pull/145126 This reverts commit 877511920dcf36463e06746d626e8876583a6abd. This fixes the `TestObjCInBlockVars.py` LLDB API test. The issue was that `GetCXXObjectParameter` wouldn't deduce the object parameter of Object

[Lldb-commits] [lldb] [lldb] Add DWARFExpressionEntry and GetExpressionEntryAtAddress() to … (PR #144238)

2025-06-20 Thread Adrian Prantl via lldb-commits
@@ -53,6 +53,27 @@ bool DWARFExpressionList::ContainsAddress(lldb::addr_t func_load_addr, return GetExpressionAtAddress(func_load_addr, addr) != nullptr; } +llvm::Expected +DWARFExpressionList::GetExpressionEntryAtAddress(lldb::addr_t func_load_addr, +

[Lldb-commits] [lldb] [lldb/crashlog] Make registers always available & fix x29/x30 parsing (PR #145104)

2025-06-20 Thread Med Ismail Bennani via lldb-commits
https://github.com/medismailben updated https://github.com/llvm/llvm-project/pull/145104 >From c83fa6be0c41102d4c0df424574b215d4f83f5f2 Mon Sep 17 00:00:00 2001 From: Med Ismail Bennani Date: Fri, 20 Jun 2025 14:45:11 -0700 Subject: [PATCH 1/2] [lldb/crashlog] Fix register parsing for arm64 usi

[Lldb-commits] [lldb] [lldb] Fix FindProcessImpl() for iOS simulators (PR #139174)

2025-06-20 Thread Jason Molenda via lldb-commits
jasonmolenda wrote: > Hi @JDevlieghere, > > I think I know why - it's by design: In the `Host::FindProcessImpl()` for iOS > simulator, after getting all processes in the macOS, it filters out the > processes which are being debugged FWIW in general this is done so that you can have multiple

[Lldb-commits] [lldb] [lldb/crashlog] Make registers always available & fix x29/x30 parsing (PR #145104)

2025-06-20 Thread via lldb-commits
llvmbot wrote: @llvm/pr-subscribers-lldb Author: Med Ismail Bennani (medismailben) Changes This patch addresses 2 issues: 1. It makes registers available on non-crashed threads all the time 2. It fixes arm64 registers parsing for registers that don't use the `x` prefix (`fp` -> `x29` / `l

[Lldb-commits] [lldb] [lldb/crashlog] Make registers always available & fix x29/x30 parsing (PR #145104)

2025-06-20 Thread Med Ismail Bennani via lldb-commits
https://github.com/medismailben created https://github.com/llvm/llvm-project/pull/145104 This patch addresses 2 issues: 1. It makes registers available on non-crashed threads all the time 2. It fixes arm64 registers parsing for registers that don't use the `x` prefix (`fp` -> `x29` / `lr` -> `x

[Lldb-commits] [lldb] [lldb] Fix FindProcessImpl() for iOS simulators (PR #139174)

2025-06-20 Thread Jonas Devlieghere via lldb-commits
JDevlieghere wrote: > I think I know why - it's by design: In the `Host::FindProcessImpl()` for iOS > simulator, after getting all processes in the macOS, it filters out the > processes which are being debugged > ([here](https://github.com/llvm/llvm-project/blob/b5dbf8210a57b986b9802304745f4c5

[Lldb-commits] [lldb] [lldb] Fix qEcho message handling (PR #145072)

2025-06-20 Thread Jason Molenda via lldb-commits
https://github.com/jasonmolenda approved this pull request. Looks good to me, test addition is nice. Usually when I've seen lldb sending qC, something has gone off the rails enough that the debug session is dead, but I can see vRun being a particular instance where it might not be. https://gi

[Lldb-commits] [lldb] [lldb] Fix SBMemoryRegionInfoListExtensions iter to yield unique refe… (PR #144815)

2025-06-20 Thread Jacob Lalonde via lldb-commits
@@ -154,14 +154,33 @@ def test_find_in_memory_unaligned(self): self.assertEqual(addr, lldb.LLDB_INVALID_ADDRESS) def test_memory_info_list_iterable(self): -"""Make sure the SBMemoryRegionInfoList is iterable""" +"""Make sure the SBMemoryRegionInfoLi

[Lldb-commits] [lldb] [lldb] Add support for x86_64h to scripted process (NFC) (PR #145099)

2025-06-20 Thread via lldb-commits
llvmbot wrote: @llvm/pr-subscribers-lldb Author: Med Ismail Bennani (medismailben) Changes This patch adds support to the haswell sub-architecture (x86_64h) to scripted processes. rdar://147208252 --- Full diff: https://github.com/llvm/llvm-project/pull/145099.diff 2 Files Affected:

[Lldb-commits] [lldb] [lldb] Add support for x86_64h to scripted process (NFC) (PR #145099)

2025-06-20 Thread Med Ismail Bennani via lldb-commits
https://github.com/medismailben created https://github.com/llvm/llvm-project/pull/145099 This patch adds support to the haswell sub-architecture (x86_64h) to scripted processes. rdar://147208252 >From bf21c2e9c59939956230d3093d5705e3e8fde12e Mon Sep 17 00:00:00 2001 From: Med Ismail Bennani

[Lldb-commits] [lldb] [LLDB] Explicitly use python for version fixup (PR #144217)

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

[Lldb-commits] [lldb] d8924d4 - [LLDB] Explicitly use python for version fixup (#144217)

2025-06-20 Thread via lldb-commits
Author: nerix Date: 2025-06-20T14:54:06-05:00 New Revision: d8924d4da78fc980b720b328897b1bd5efba348a URL: https://github.com/llvm/llvm-project/commit/d8924d4da78fc980b720b328897b1bd5efba348a DIFF: https://github.com/llvm/llvm-project/commit/d8924d4da78fc980b720b328897b1bd5efba348a.diff LOG: [L

[Lldb-commits] [lldb] [lldb][target] Add progress report for wait-attaching to process (PR #144768)

2025-06-20 Thread Chelsea Cassanova via lldb-commits
chelcassanova wrote: @labath > Well.. IIUC, this test tries to attach to a process called "a.out" -- and > hopes that the process doesn't appear. That's pretty much it, I just need to wait-attach to _some_ process to trigger the progress report I'm expecting and then drop the process once we

[Lldb-commits] [lldb] [LLDB] Update DIL to pass current 'frame var' tests. (PR #145055)

2025-06-20 Thread via lldb-commits
https://github.com/cmtice updated https://github.com/llvm/llvm-project/pull/145055 >From e9079e6357b933e84603997edb8d0cd27a515989 Mon Sep 17 00:00:00 2001 From: Caroline Tice Date: Fri, 20 Jun 2025 08:33:14 -0700 Subject: [PATCH 1/4] [LLDB] Update DIL to pass current 'frame var' tests. As a pr

[Lldb-commits] [lldb] [lldb][RISCV] fix LR/SC atomic sequence handling in lldb-server (PR #127505)

2025-06-20 Thread David Spickett via lldb-commits
@@ -23,7 +23,7 @@ class NativeProcessSoftwareSingleStep { protected: // List of thread ids stepping with a breakpoint with the address of // the relevan breakpoint - std::map m_threads_stepping_with_breakpoint; + std::multimap m_threads_stepping_with_breakpoint; -

[Lldb-commits] [lldb] [lldb] upgrade HandleFrameFormatVariable callees to llvm::Expected (PR #144731)

2025-06-20 Thread Charles Zablit via lldb-commits
@@ -236,199 +236,158 @@ static bool PrettyPrintFunctionNameWithArgs(Stream &out_stream, return true; } -static std::optional -GetDemangledBasename(const SymbolContext &sc) { +static llvm::Expected> +GetAndValidateInfo(const SymbolContext &sc) { Mangled mangled = sc.GetPo

[Lldb-commits] [lldb] [lldb] Fix SBMemoryRegionInfoListExtensions iter to yield unique refe… (PR #144815)

2025-06-20 Thread via lldb-commits
https://github.com/zyn-li updated https://github.com/llvm/llvm-project/pull/144815 >From 2054114501b9de9ab54d22044800607fd12d Mon Sep 17 00:00:00 2001 From: Zhiyuan Li Date: Wed, 18 Jun 2025 16:49:12 -0700 Subject: [PATCH] [lldb] Fix SBMemoryRegionInfoListExtensions iter to yield unique re

[Lldb-commits] [lldb] [LLDB] Explicitly use python for version fixup (PR #144217)

2025-06-20 Thread Chelsea Cassanova via lldb-commits
https://github.com/chelcassanova approved this pull request. LGTM! (For future reference, we should also do this when we run the framework fixup Python script) https://github.com/llvm/llvm-project/pull/144217 ___ lldb-commits mailing list lldb-commit

[Lldb-commits] [lldb] [lldb][DWARFASTParserClang] Support constant index encoding of DW_AT_object_pointer (PR #144998)

2025-06-20 Thread Michael Buch via lldb-commits
https://github.com/Michael137 updated https://github.com/llvm/llvm-project/pull/144998 >From 22e8f644c3cd8856e1663bdf71aab4fa621f75bf Mon Sep 17 00:00:00 2001 From: Michael Buch Date: Wed, 29 Jan 2025 12:15:35 + Subject: [PATCH 1/2] [lldb][DWARFASTParserClang] Support constant index encodi

[Lldb-commits] [clang] [clang-tools-extra] [lldb] [clang] Remove intrusive reference count from `DiagnosticOptions` (PR #139584)

2025-06-20 Thread James Y Knight via lldb-commits
jyknight wrote: > Thanks for the concrete example! [..] I just wanted to thank you (a bit late) for the explanation above, it was really helpful! > FWIW I'd like to get rid of the reference count of DiagnosticsEngine too, and > make the lifetimes stricter and more explicit, but that's a lower

[Lldb-commits] [lldb] Revert "[lldb][DWARF] Remove object_pointer from ParsedDWARFAttributes" (PR #145065)

2025-06-20 Thread Michael Buch via lldb-commits
https://github.com/Michael137 closed https://github.com/llvm/llvm-project/pull/145065 ___ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

[Lldb-commits] [lldb] [lldb] Fix SBMemoryRegionInfoListExtensions iter to yield unique refe… (PR #144815)

2025-06-20 Thread via lldb-commits
https://github.com/zyn-li updated https://github.com/llvm/llvm-project/pull/144815 >From 16792f7dffae9ef95a3a09c2dbaa6731b07e0ea7 Mon Sep 17 00:00:00 2001 From: Zhiyuan Li Date: Wed, 18 Jun 2025 16:49:12 -0700 Subject: [PATCH 1/2] [lldb] Fix SBMemoryRegionInfoListExtensions iter to yield uniqu

[Lldb-commits] [lldb] 65cb3bc - [Clang][PowerPC] Add __dmr1024 type and DMF integer calculation builtins (#142480)

2025-06-20 Thread via lldb-commits
Author: Maryam Moghadas Date: 2025-06-20T13:03:14-04:00 New Revision: 65cb3bcf327da8f9740e56897bc9954364e59eb6 URL: https://github.com/llvm/llvm-project/commit/65cb3bcf327da8f9740e56897bc9954364e59eb6 DIFF: https://github.com/llvm/llvm-project/commit/65cb3bcf327da8f9740e56897bc9954364e59eb6.dif

[Lldb-commits] [lldb] 20d57e7 - [lldb][AIX] Added base file for AIX Register Context (#144645)

2025-06-20 Thread via lldb-commits
Author: Hemang Gadhavi Date: 2025-06-20T20:18:39+05:30 New Revision: 20d57e77f6709ef32791391bc064d3ed5663272a URL: https://github.com/llvm/llvm-project/commit/20d57e77f6709ef32791391bc064d3ed5663272a DIFF: https://github.com/llvm/llvm-project/commit/20d57e77f6709ef32791391bc064d3ed5663272a.diff

[Lldb-commits] [lldb] [lldb][AArch64] Add HWCAP3 to register field detection (PR #145029)

2025-06-20 Thread David Spickett via lldb-commits
https://github.com/DavidSpickett updated https://github.com/llvm/llvm-project/pull/145029 >From ba8fcf4ef14e25b8a628b994988d6a67bdbea7df Mon Sep 17 00:00:00 2001 From: David Spickett Date: Thu, 19 Jun 2025 10:43:48 + Subject: [PATCH] [lldb][AArch64] Add HWCAP3 to register field detection T

[Lldb-commits] [lldb] [lldb] Add Model Context Protocol (MCP) support to LLDB (PR #143628)

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

[Lldb-commits] [lldb] [lldb][RISCV] fix LR/SC atomic sequence handling in lldb-server (PR #127505)

2025-06-20 Thread David Spickett via lldb-commits
@@ -32,6 +34,37 @@ class RegisterValue; class Stream; class Target; class UnwindPlan; +class EmulateInstruction; + +using BreakpointLocations = std::vector; + +class SingleStepBreakpointLocationsPredictor { +public: + SingleStepBreakpointLocationsPredictor( + std::unique_

[Lldb-commits] [lldb] [lldb][RISCV] fix LR/SC atomic sequence handling in lldb-server (PR #127505)

2025-06-20 Thread David Spickett via lldb-commits
@@ -1792,4 +1778,127 @@ bool EmulateInstructionRISCV::SupportsThisArch(const ArchSpec &arch) { return arch.GetTriple().isRISCV(); } +BreakpointLocations +RISCVSingleStepBreakpointLocationsPredictor::GetBreakpointLocations( +Status &status) { + EmulateInstructionRISCV *

[Lldb-commits] [lldb] 9524bfb - [lldb] Add Model Context Protocol (MCP) support to LLDB (#143628)

2025-06-20 Thread via lldb-commits
Author: Jonas Devlieghere Date: 2025-06-20T10:48:04-05:00 New Revision: 9524bfb27020d31b9474f595b7c0e5d2e1ac65f5 URL: https://github.com/llvm/llvm-project/commit/9524bfb27020d31b9474f595b7c0e5d2e1ac65f5 DIFF: https://github.com/llvm/llvm-project/commit/9524bfb27020d31b9474f595b7c0e5d2e1ac65f5.d

[Lldb-commits] [lldb] [llvm] [NFC][DebugInfo][DWARF] Create new low-level dwarf library (PR #145081)

2025-06-20 Thread via lldb-commits
https://github.com/Sterling-Augustine created https://github.com/llvm/llvm-project/pull/145081 This is the culmination of a series of changes described in [1]. Although somewhat large by line count, it is almost entirely mechanical, creating a new library in DebugInfo/DWARF/LowLevel. This

[Lldb-commits] [lldb] [lldb][target] Add progress report for wait-attaching to process (PR #144768)

2025-06-20 Thread Pavel Labath via lldb-commits
labath wrote: Well.. IIUC, this test tries to attach to a process called "a.out" -- and hopes that the process doesn't appear. If you run the test suite in parallel, you'll have any number of processes like that going around all the time. Not only will this test fail, but it will mess up the s

[Lldb-commits] [lldb] [lldb][darwin] force BuiltinHeadersInSystemModules to be always false (PR #144913)

2025-06-20 Thread Charles Zablit via lldb-commits
charles-zablit wrote: I only get one test failures when running the `check-lldb-api` target: `commands/platform/sdk/TestPlatformSDK.py` but it also happens on the main branch, so there's probably something wrong with the SDK configuration on my system. https://github.com/llvm/llvm-project/pul

[Lldb-commits] [lldb] [lldb][AArch64] Add HWCAP3 to register field detection (PR #145029)

2025-06-20 Thread David Spickett via lldb-commits
DavidSpickett wrote: HWCAP3 has been present for a while - https://elixir.bootlin.com/linux/v6.16-rc2/source/include/uapi/linux/auxvec.h#L35 The MTE patches are still in review (https://lore.kernel.org/linux-arm-kernel/20250611150417.44850-5-yeoreum@arm.com/) but are unlikely to change dr

[Lldb-commits] [lldb] [lldb][AArch64] Add HWCAP3 to register field detection (PR #145029)

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

[Lldb-commits] [lldb] 749e4a5 - [lldb] Fix ASCII art in CommandObjectProtocolServer (NFC)

2025-06-20 Thread Jonas Devlieghere via lldb-commits
Author: Jonas Devlieghere Date: 2025-06-20T10:54:00-05:00 New Revision: 749e4a53d252e23e870d4a1638ff9d846af58e7f URL: https://github.com/llvm/llvm-project/commit/749e4a53d252e23e870d4a1638ff9d846af58e7f DIFF: https://github.com/llvm/llvm-project/commit/749e4a53d252e23e870d4a1638ff9d846af58e7f.d

[Lldb-commits] [lldb] [lldb] Add Socket::CreatePair (PR #145015)

2025-06-20 Thread Jonas Devlieghere via lldb-commits
@@ -106,6 +106,10 @@ class Socket : public IOObject { static std::unique_ptr Create(const SocketProtocol protocol, Status &error); + static llvm::Expected< + std::pair, std::unique_ptr>> JDevlieghere wrote: Nit:

[Lldb-commits] [lldb] [lldb] Add Socket::CreatePair (PR #145015)

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

[Lldb-commits] [lldb] [lldb] Add Socket::CreatePair (PR #145015)

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

[Lldb-commits] [lldb] [lldb] Add Socket::CreatePair (PR #145015)

2025-06-20 Thread Jonas Devlieghere via lldb-commits
@@ -52,6 +52,34 @@ TCPSocket::TCPSocket(NativeSocket socket, bool should_close) TCPSocket::~TCPSocket() { CloseListenSockets(); } +llvm::Expected< +std::pair, std::unique_ptr>> +TCPSocket::CreatePair() { + auto listen_socket_up = std::make_unique(true); + if (Status err

[Lldb-commits] [lldb] [lldb] upgrade HandleFrameFormatVariable callees to llvm::Expected (PR #144731)

2025-06-20 Thread Michael Buch via lldb-commits
@@ -74,24 +74,48 @@ struct DemangledNameInfo { return BasenameRange.second > BasenameRange.first; } + /// Returns \c true if `BasenameRange` is empty. + bool isBasenameEmpty() const { +return BasenameRange.first == BasenameRange.second; Michael137

[Lldb-commits] [lldb] [LLDB] Update DIL to pass current 'frame var' tests. (PR #145055)

2025-06-20 Thread via lldb-commits
https://github.com/cmtice updated https://github.com/llvm/llvm-project/pull/145055 >From e9079e6357b933e84603997edb8d0cd27a515989 Mon Sep 17 00:00:00 2001 From: Caroline Tice Date: Fri, 20 Jun 2025 08:33:14 -0700 Subject: [PATCH 1/2] [LLDB] Update DIL to pass current 'frame var' tests. As a pr

[Lldb-commits] [lldb] [lldb] add plugin names to process save-core error output. (PR #143126)

2025-06-20 Thread Ebuka Ezike via lldb-commits
@@ -16,4 +16,4 @@ run da-viper wrote: did not run it with a file since that is tested in the `TestProcessSaveCore.py` file. https://github.com/llvm/llvm-project/pull/143126 ___ lldb-commits mailing list lldb-commit

[Lldb-commits] [lldb] [LLDB] Add type summaries for MSVC STL strings (PR #143177)

2025-06-20 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 HEAD~1...HEAD lldb/test/API/functionalities/data-formatter/data-formatter-stl/msvcstl/stri

[Lldb-commits] [lldb] [LLDB] Update DIL to pass current 'frame var' tests. (PR #145055)

2025-06-20 Thread via lldb-commits
https://github.com/cmtice created https://github.com/llvm/llvm-project/pull/145055 As a preliminary to making DIL the default implementation for 'frame var', ran check-lldb forcing 'frame var' to always use DIL, and discovered a few failing tests. This fixes most of them. The only two remainin

[Lldb-commits] [lldb] [LLDB] Add SI_USER and SI_KERNEL to Linux signals (PR #144800)

2025-06-20 Thread David Spickett via lldb-commits
DavidSpickett wrote: Depending on the user's knowledge of / interpretation of how signals work, I don't think "sent by kernel" is enough for them to find their specific problem. Asking my nearest totally accurate AI model: > Yes, when an application receives a SIGILL (illegal instruction) signa

[Lldb-commits] [lldb] [lldb/cmake] Plugin layering enforcement mechanism (PR #144543)

2025-06-20 Thread Med Ismail Bennani via lldb-commits
medismailben wrote: Cool stuff! https://github.com/llvm/llvm-project/pull/144543 ___ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

[Lldb-commits] [lldb] [LLDB] Update DIL to pass current 'frame var' tests. (PR #145055)

2025-06-20 Thread via lldb-commits
https://github.com/cmtice updated https://github.com/llvm/llvm-project/pull/145055 >From e9079e6357b933e84603997edb8d0cd27a515989 Mon Sep 17 00:00:00 2001 From: Caroline Tice Date: Fri, 20 Jun 2025 08:33:14 -0700 Subject: [PATCH 1/3] [LLDB] Update DIL to pass current 'frame var' tests. As a pr

[Lldb-commits] [lldb] [llvm] [NFC][DebugInfo][DWARF] Create new low-level dwarf library (PR #145081)

2025-06-20 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 -- llvm/include/llvm/DebugInfo/DWARF/DWARFExpressionPr

[Lldb-commits] [lldb] Revert "[lldb][DWARF] Remove object_pointer from ParsedDWARFAttributes" (PR #145065)

2025-06-20 Thread via lldb-commits
llvmbot wrote: @llvm/pr-subscribers-lldb Author: Michael Buch (Michael137) Changes Reverts llvm/llvm-project#144880 Caused `TestObjCIvarsInBlocks.py` to fail on macOS CI. --- Full diff: https://github.com/llvm/llvm-project/pull/145065.diff 2 Files Affected: - (modified) lldb/source/Pl

[Lldb-commits] [lldb] [lldb][RISCV] fix LR/SC atomic sequence handling in lldb-server (PR #127505)

2025-06-20 Thread via lldb-commits
https://github.com/dlav-sc updated https://github.com/llvm/llvm-project/pull/127505 >From 2520b8d7884d320ed7923685b1a3e8652a7e8f5f Mon Sep 17 00:00:00 2001 From: Daniil Avdeev Date: Fri, 23 May 2025 13:27:46 + Subject: [PATCH 1/4] [lldb][RISCV] handle lr/sc single step lldb-server had limi

[Lldb-commits] [clang] [lldb] [Clang][PowerPC] Add __dmr1024 type and DMF integer calculation builtins (PR #142480)

2025-06-20 Thread Maryam Moghadas via lldb-commits
https://github.com/maryammo closed https://github.com/llvm/llvm-project/pull/142480 ___ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

[Lldb-commits] [lldb] [lldb] Fix qEcho message handling (PR #145072)

2025-06-20 Thread via lldb-commits
llvmbot wrote: @llvm/pr-subscribers-lldb Author: None (eleviant) Changes Patch fixes the sync-on-timeout logic in lldb and switches to qEcho based ping, instead of qC. This fixes vRun message case, when there is no process yet and qC returns an error. --- Full diff: https://github.com/l

[Lldb-commits] [lldb] [lldb] Fix qEcho message handling (PR #145072)

2025-06-20 Thread via lldb-commits
https://github.com/eleviant updated https://github.com/llvm/llvm-project/pull/145072 >From 8436977c0331765ab17dbb47cd7113352642e575 Mon Sep 17 00:00:00 2001 From: Evgeny Leviant Date: Fri, 20 Jun 2025 18:46:24 +0200 Subject: [PATCH 1/2] [lldb] Fix qEcho message handling Patch fixes the sync-on

[Lldb-commits] [lldb] [lldb] Fix qEcho message handling (PR #145072)

2025-06-20 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 HEAD~1...HEAD lldb/packages/Python/lldbsuite/test/gdbclientutils.py lldb/test/API/functio

[Lldb-commits] [lldb] [lldb] add plugin names to process save-core error output. (PR #143126)

2025-06-20 Thread Ebuka Ezike via lldb-commits
https://github.com/da-viper updated https://github.com/llvm/llvm-project/pull/143126 >From fc849bd4e831f9dc6f53be3a8508e1eb33f4151c Mon Sep 17 00:00:00 2001 From: Ebuka Ezike Date: Fri, 6 Jun 2025 13:15:41 +0100 Subject: [PATCH 1/3] [lldb] add plugin names to process save-core error output. s

[Lldb-commits] [lldb] [lldb] Fix qEcho message handling (PR #145072)

2025-06-20 Thread via lldb-commits
https://github.com/eleviant created https://github.com/llvm/llvm-project/pull/145072 Patch fixes the sync-on-timeout logic in lldb and switches to qEcho based ping, instead of qC. This fixes vRun message case, when there is no process yet and qC returns an error. >From 8436977c0331765ab17dbb4

[Lldb-commits] [lldb] Revert "[lldb][DWARF] Remove object_pointer from ParsedDWARFAttributes" (PR #145065)

2025-06-20 Thread Michael Buch via lldb-commits
https://github.com/Michael137 created https://github.com/llvm/llvm-project/pull/145065 Reverts llvm/llvm-project#144880 Caused `TestObjCIvarsInBlocks.py` to fail on macOS CI. >From 34db3b66fd4b406453ed712bf8995eb2ed32dcb7 Mon Sep 17 00:00:00 2001 From: Michael Buch Date: Fri, 20 Jun 2025 17:2

[Lldb-commits] [lldb] [lldb][AArch64][Linux] Show MTE store only setting in mte_ctrl (PR #145033)

2025-06-20 Thread David Spickett via lldb-commits
DavidSpickett wrote: **Note:** The first commit of this is https://github.com/llvm/llvm-project/pull/145029. Please review the subsequent commits only. Kernel patch for this feature still in review (https://lore.kernel.org/linux-arm-kernel/20250611150417.44850-3-yeoreum@arm.com/) but hav

[Lldb-commits] [lldb] 8775119 - Revert "[lldb][DWARF] Remove object_pointer from ParsedDWARFAttributes" (#145065)

2025-06-20 Thread via lldb-commits
Author: Michael Buch Date: 2025-06-20T17:20:58+01:00 New Revision: 877511920dcf36463e06746d626e8876583a6abd URL: https://github.com/llvm/llvm-project/commit/877511920dcf36463e06746d626e8876583a6abd DIFF: https://github.com/llvm/llvm-project/commit/877511920dcf36463e06746d626e8876583a6abd.diff

[Lldb-commits] [lldb] [lldb][DWARF] Remove object_pointer from ParsedDWARFAttributes (PR #144880)

2025-06-20 Thread Michael Buch via lldb-commits
Michael137 wrote: > @Michael137 Looks like this causes `TestObjCIvarsInBlocks.py` to fail on AS: > https://green.lab.llvm.org/job/llvm.org/view/LLDB/job/as-lldb-cmake/28039/ Thanks for pinging. Reverted for now. https://github.com/llvm/llvm-project/pull/144880 _

[Lldb-commits] [lldb] [LLDB] Update DIL to pass current 'frame var' tests. (PR #145055)

2025-06-20 Thread via lldb-commits
llvmbot wrote: @llvm/pr-subscribers-lldb Author: None (cmtice) Changes As a preliminary to making DIL the default implementation for 'frame var', ran check-lldb forcing 'frame var' to always use DIL, and discovered a few failing tests. This fixes most of them. The only two remaining fail

[Lldb-commits] [lldb] [lldb][RISCV] fix LR/SC atomic sequence handling in lldb-server (PR #127505)

2025-06-20 Thread via lldb-commits
@@ -326,11 +326,15 @@ void NativeProcessFreeBSD::MonitorSIGTRAP(lldb::pid_t pid) { if (thread_info != m_threads_stepping_with_breakpoint.end() && thread_info->second == regctx.GetPC()) { thread->SetStoppedByTrace(); - Status brkpt_error =

[Lldb-commits] [lldb] [lldb][target] Add progress report for wait-attaching to process (PR #144768)

2025-06-20 Thread Pavel Labath via lldb-commits
@@ -16,6 +17,36 @@ def setUp(self): self.broadcaster, lldb.SBDebugger.eBroadcastBitProgress ) +def test_wait_attach_progress_reporting(self): +"""Test that progress reports for wait attaching work as intended.""" +self.build() --

[Lldb-commits] [lldb] [lldb][DWARF] Remove object_pointer from ParsedDWARFAttributes (PR #144880)

2025-06-20 Thread Jonas Devlieghere via lldb-commits
JDevlieghere wrote: @Michael137 Looks like this causes `TestObjCIvarsInBlocks.py` to fail on AS: https://green.lab.llvm.org/job/llvm.org/view/LLDB/job/as-lldb-cmake/28039/ https://github.com/llvm/llvm-project/pull/144880 ___ lldb-commits mailing list

[Lldb-commits] [lldb] [LLDB] Update DIL to pass current 'frame var' tests. (PR #145055)

2025-06-20 Thread via lldb-commits
cmtice wrote: Question: Should we update DIL to parse/handle negative integers before making the switch? (e.g. to pass the TestVarPath test) https://github.com/llvm/llvm-project/pull/145055 ___ lldb-commits mailing list lldb-commits@lists.llvm.org htt

[Lldb-commits] [lldb] [LLDB] Update DIL to pass current 'frame var' tests. (PR #145055)

2025-06-20 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 HEAD~1...HEAD lldb/test/API/commands/frame/var-dil/basics/MemberOf/TestFrameVarDILMemberOf

[Lldb-commits] [lldb] [lldb][DWARFASTParserClang] Support constant index encoding of DW_AT_object_pointer (PR #144998)

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

[Lldb-commits] [lldb] [lldb][RISCV] fix LR/SC atomic sequence handling in lldb-server (PR #127505)

2025-06-20 Thread David Spickett via lldb-commits
@@ -326,11 +326,15 @@ void NativeProcessFreeBSD::MonitorSIGTRAP(lldb::pid_t pid) { if (thread_info != m_threads_stepping_with_breakpoint.end() && thread_info->second == regctx.GetPC()) { thread->SetStoppedByTrace(); - Status brkpt_error =

[Lldb-commits] [lldb] [lldb/cmake] Plugin layering enforcement mechanism (PR #144543)

2025-06-20 Thread Jonas Devlieghere via lldb-commits
https://github.com/JDevlieghere approved this pull request. LGTM, I'm very happy with this :-) https://github.com/llvm/llvm-project/pull/144543 ___ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/l

[Lldb-commits] [lldb] [lldb-dap] Fix DAPError (PR #145010)

2025-06-20 Thread Jonas Devlieghere via lldb-commits
@@ -101,7 +101,8 @@ def test_server_interrupt(self): # Interrupt the server which should disconnect all clients. process.send_signal(signal.SIGINT) -self.dap_server.wait_for_terminated() +self.dap_server.wait_for_event(["terminated", "exited"])

[Lldb-commits] [lldb] [lldb-dap] Fix DAPError (PR #145010)

2025-06-20 Thread Jonas Devlieghere via lldb-commits
@@ -342,6 +342,7 @@ serveConnection(const Socket::SocketProtocol &protocol, const std::string &name, << " disconnected failed: " << llvm::toString(std::move(error)) << "\n"; } + dap->StopEventHandlers(); JDe

[Lldb-commits] [lldb] [lldb-dap] Fix DAPError (PR #145010)

2025-06-20 Thread Jonas Devlieghere via lldb-commits
https://github.com/JDevlieghere commented: This patch seems to be doing multiple things and unless they really depend on each other, they should really be separate PRs. For example, the URL label change looks like it can stand on its own and can easily be tested through a unit test. https://g

[Lldb-commits] [lldb] [lldb-dap] Fix DAPError (PR #145010)

2025-06-20 Thread Jonas Devlieghere via lldb-commits
@@ -489,7 +489,7 @@ def wait_for_exited(self, timeout: Optional[float] = None): return event_dict def wait_for_terminated(self, timeout: Optional[float] = None): -event_dict = self.wait_for_event("terminated", timeout) +event_dict = self.wait_for_ev

[Lldb-commits] [lldb] [lldb-dap] Fix DAPError (PR #145010)

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

[Lldb-commits] [lldb] [lldb][RISCV] fix LR/SC atomic sequence handling in lldb-server (PR #127505)

2025-06-20 Thread David Spickett via lldb-commits
@@ -0,0 +1,90 @@ +""" +Test software step-inst +""" + +import lldb +from lldbsuite.test.decorators import * +from lldbsuite.test.lldbtest import * +from lldbsuite.test import lldbutil + + +class TestSoftwareStep(TestBase): +@skipIf(archs=no_match(re.compile("rv*"))) --

[Lldb-commits] [lldb] [lldb][RISCV] fix LR/SC atomic sequence handling in lldb-server (PR #127505)

2025-06-20 Thread via lldb-commits
@@ -1792,4 +1778,127 @@ bool EmulateInstructionRISCV::SupportsThisArch(const ArchSpec &arch) { return arch.GetTriple().isRISCV(); } +BreakpointLocations +RISCVSingleStepBreakpointLocationsPredictor::GetBreakpointLocations( +Status &status) { + EmulateInstructionRISCV *

[Lldb-commits] [lldb] [lldb][RISCV] fix LR/SC atomic sequence handling in lldb-server (PR #127505)

2025-06-20 Thread David Spickett via lldb-commits
@@ -32,6 +32,31 @@ class RegisterValue; class Stream; class Target; class UnwindPlan; +class EmulateInstruction; + +using BreakpointLocations = std::vector; + +class SingleStepBreakpointLocationsPredictor { +public: + SingleStepBreakpointLocationsPredictor( + std::unique_

[Lldb-commits] [lldb] [lldb][RISCV] fix LR/SC atomic sequence handling in lldb-server (PR #127505)

2025-06-20 Thread via lldb-commits
@@ -0,0 +1,19 @@ +void __attribute__((naked)) incomplete_cas(int *a, int *b) { dlav-sc wrote: I've added comments to all source test files. https://github.com/llvm/llvm-project/pull/127505 ___ lldb-commits mailing list

[Lldb-commits] [lldb] [lldb][RISCV] fix LR/SC atomic sequence handling in lldb-server (PR #127505)

2025-06-20 Thread via lldb-commits
@@ -32,6 +34,37 @@ class RegisterValue; class Stream; class Target; class UnwindPlan; +class EmulateInstruction; + +using BreakpointLocations = std::vector; + +class SingleStepBreakpointLocationsPredictor { +public: + SingleStepBreakpointLocationsPredictor( + std::unique_

[Lldb-commits] [lldb] [lldb][RISCV] fix LR/SC atomic sequence handling in lldb-server (PR #127505)

2025-06-20 Thread David Spickett via lldb-commits
@@ -0,0 +1,90 @@ +""" +Test software step-inst +""" + +import lldb +from lldbsuite.test.decorators import * +from lldbsuite.test.lldbtest import * +from lldbsuite.test import lldbutil + + +class TestSoftwareStep(TestBase): +@skipIf(archs=no_match(re.compile("rv*"))) +def t

[Lldb-commits] [lldb] [LLDB] Add type summaries for MSVC STL strings (PR #143177)

2025-06-20 Thread via lldb-commits
https://github.com/Nerixyz updated https://github.com/llvm/llvm-project/pull/143177 >From ad7f551c73e713da43b20c8908b517e9e02c50e2 Mon Sep 17 00:00:00 2001 From: Nerixyz Date: Wed, 18 Jun 2025 21:49:16 +0200 Subject: [PATCH] [LLDB] Add type summaries for MSVC STL strings --- .../lldb/DataForm

[Lldb-commits] [lldb] [lldb][AIX] Added base file for AIX Register Context (PR #144645)

2025-06-20 Thread Dhruv Srivastava via lldb-commits
https://github.com/DhruvSrivastavaX closed https://github.com/llvm/llvm-project/pull/144645 ___ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

[Lldb-commits] [lldb] [lldb][RISCV] fix LR/SC atomic sequence handling in lldb-server (PR #127505)

2025-06-20 Thread David Spickett via lldb-commits
@@ -23,7 +23,7 @@ class NativeProcessSoftwareSingleStep { protected: // List of thread ids stepping with a breakpoint with the address of // the relevan breakpoint - std::map m_threads_stepping_with_breakpoint; + std::multimap m_threads_stepping_with_breakpoint; -

[Lldb-commits] [lldb] [lldb][RISCV] fix LR/SC atomic sequence handling in lldb-server (PR #127505)

2025-06-20 Thread David Spickett via lldb-commits
@@ -0,0 +1,19 @@ +void __attribute__((naked)) incomplete_cas(int *a, int *b) { DavidSpickett wrote: Actually I think it's not missing, it's doing something else? The sc.w part. Anyway, a comment will make this clear. https://github.com/llvm/llvm-project/pull/12

[Lldb-commits] [lldb] [lldb][DWARF] Remove object_pointer from ParsedDWARFAttributes (PR #144880)

2025-06-20 Thread Michael Buch via lldb-commits
https://github.com/Michael137 closed https://github.com/llvm/llvm-project/pull/144880 ___ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

[Lldb-commits] [lldb] b017b4c - [lldb][DWARF] Remove object_pointer from ParsedDWARFAttributes (#144880)

2025-06-20 Thread via lldb-commits
Author: Michael Buch Date: 2025-06-20T16:01:55+01:00 New Revision: b017b4ce9a45d4c5a339e24142da5d4a7e4c5db1 URL: https://github.com/llvm/llvm-project/commit/b017b4ce9a45d4c5a339e24142da5d4a7e4c5db1 DIFF: https://github.com/llvm/llvm-project/commit/b017b4ce9a45d4c5a339e24142da5d4a7e4c5db1.diff

[Lldb-commits] [lldb] [lldb][RISCV] fix LR/SC atomic sequence handling in lldb-server (PR #127505)

2025-06-20 Thread David Spickett via lldb-commits
@@ -326,11 +326,15 @@ void NativeProcessFreeBSD::MonitorSIGTRAP(lldb::pid_t pid) { if (thread_info != m_threads_stepping_with_breakpoint.end() && thread_info->second == regctx.GetPC()) { thread->SetStoppedByTrace(); - Status brkpt_error =

[Lldb-commits] [lldb] [lldb][AIX] Added base file for AIX Register Context (PR #144645)

2025-06-20 Thread Dhruv Srivastava via lldb-commits
https://github.com/DhruvSrivastavaX approved this pull request. https://github.com/llvm/llvm-project/pull/144645 ___ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

[Lldb-commits] [lldb] [LLDB] Add type summaries for MSVC STL strings (PR #143177)

2025-06-20 Thread via lldb-commits
https://github.com/Nerixyz updated https://github.com/llvm/llvm-project/pull/143177 >From 9f957946e2538c8a0c0f6d772ae9c5d1946ec694 Mon Sep 17 00:00:00 2001 From: Nerixyz Date: Wed, 18 Jun 2025 21:49:16 +0200 Subject: [PATCH] [LLDB] Add type summaries for MSVC STL strings --- .../lldb/DataForm

[Lldb-commits] [lldb] [LLDB] Add type summaries for MSVC STL strings (PR #143177)

2025-06-20 Thread via lldb-commits
@@ -299,6 +299,8 @@ def parseOptionsAndInitTestdirs(): configuration.libcxx_library_dir = args.libcxx_library_dir configuration.cmake_build_type = args.cmake_build_type.lower() +configuration.target_triple = args.target_triple + Nerixyz wrote: The

[Lldb-commits] [lldb] [lldb][AArch64][Linux] Show MTE store only setting in mte_ctrl (PR #145033)

2025-06-20 Thread via lldb-commits
llvmbot wrote: @llvm/pr-subscribers-lldb Author: David Spickett (DavidSpickett) Changes This controls whether tag checking is performed for loads and stores, or stores only. It requires a specific architecture feature which we detect with a HWCAP3 and cpuinfo feature. Live process tests

[Lldb-commits] [lldb] [LLDB] Add type summaries for MSVC STL strings (PR #143177)

2025-06-20 Thread via lldb-commits
@@ -0,0 +1,4 @@ +CXX_SOURCES := main.cpp + +CXXFLAGS_EXTRAS := -std=c++14 -O0 Nerixyz wrote: Yes, that worked! https://github.com/llvm/llvm-project/pull/143177 ___ lldb-commits mailing list lldb-commits@lists.llvm.org

[Lldb-commits] [lldb] [lldb][RISCV] fix LR/SC atomic sequence handling in lldb-server (PR #127505)

2025-06-20 Thread David Spickett via lldb-commits
@@ -16,6 +16,16 @@ namespace lldb_private { +class ARMSingleStepBreakpointLocationsPredictor +: public SingleStepBreakpointLocationsPredictor { +public: + ARMSingleStepBreakpointLocationsPredictor( + std::unique_ptr emulator_up) + : SingleStepBreakpointLocation

[Lldb-commits] [lldb] [LLDB] Add type summaries for MSVC STL strings (PR #143177)

2025-06-20 Thread via lldb-commits
https://github.com/Nerixyz updated https://github.com/llvm/llvm-project/pull/143177 >From d80694278209cfc1c88414b1f5eb8e9980ebb3fa Mon Sep 17 00:00:00 2001 From: Nerixyz Date: Wed, 18 Jun 2025 21:49:16 +0200 Subject: [PATCH] [LLDB] Add type summaries for MSVC STL strings --- .../lldb/DataForm

[Lldb-commits] [lldb] [lldb][RISCV] fix LR/SC atomic sequence handling in lldb-server (PR #127505)

2025-06-20 Thread via lldb-commits
https://github.com/dlav-sc updated https://github.com/llvm/llvm-project/pull/127505 >From 2520b8d7884d320ed7923685b1a3e8652a7e8f5f Mon Sep 17 00:00:00 2001 From: Daniil Avdeev Date: Fri, 23 May 2025 13:27:46 + Subject: [PATCH 1/3] [lldb][RISCV] handle lr/sc single step lldb-server had limi

[Lldb-commits] [lldb] [LLDB] Add type summaries for MSVC STL strings (PR #143177)

2025-06-20 Thread Pavel Labath via lldb-commits
@@ -299,6 +299,8 @@ def parseOptionsAndInitTestdirs(): configuration.libcxx_library_dir = args.libcxx_library_dir configuration.cmake_build_type = args.cmake_build_type.lower() +configuration.target_triple = args.target_triple + labath wrote: I'd

[Lldb-commits] [lldb] [lldb][RISCV] fix LR/SC atomic sequence handling in lldb-server (PR #127505)

2025-06-20 Thread via lldb-commits
@@ -0,0 +1,90 @@ +""" +Test software step-inst +""" + +import lldb +from lldbsuite.test.decorators import * +from lldbsuite.test.lldbtest import * +from lldbsuite.test import lldbutil + + +class TestSoftwareStep(TestBase): +@skipIf(archs=no_match(re.compile("rv*"))) +def t

[Lldb-commits] [lldb] [lldb][RISCV] fix LR/SC atomic sequence handling in lldb-server (PR #127505)

2025-06-20 Thread via lldb-commits
@@ -0,0 +1,90 @@ +""" +Test software step-inst +""" + +import lldb +from lldbsuite.test.decorators import * +from lldbsuite.test.lldbtest import * +from lldbsuite.test import lldbutil + + +class TestSoftwareStep(TestBase): +@skipIf(archs=no_match(re.compile("rv*"))) +def t

  1   2   >