[Lldb-commits] [lldb] [lldb][test] Don't run libc++ API tests without a locally built libc++ (PR #162657)

2025-10-18 Thread Michael Buch via lldb-commits
Michael137 wrote: > > --category libc++ > > It shows 68 skipped, did you paste the wrong output? As in, I wanted to show that the simluators aren't part of the `libc++` category :p https://github.com/llvm/llvm-project/pull/162657 ___ lldb-commits ma

[Lldb-commits] [lldb] [gdbremote] Document MultiMemRead packet in protocol extensions (PR #162675)

2025-10-18 Thread Jason Molenda via lldb-commits
@@ -2530,3 +2530,41 @@ read packet: $e0030100#b9 **Priority to Implement:** Only required for Wasm support. Necessary to show variables. + +### MultiMemRead + +Read memory from multiple memory addresses. + +There are two arguments to the request: + +* `ranges`: a list of base-

[Lldb-commits] [lldb] [debugserver] Support for `qMemTags` packet (PR #160952)

2025-10-18 Thread David Spickett via lldb-commits
@@ -0,0 +1,29 @@ +#include +#include +#include +#include + +// Produce some names on the trace +const size_t tag_granule = 16; +uint8_t *my_malloc(void) { return malloc(2 * tag_granule); } +uint8_t *allocate(void) { return my_malloc(); } + +void my_free(void *ptr) { free(ptr);

[Lldb-commits] [lldb] [lldb] Fix misaligned loads violation in DataExtractor (PR #163880)

2025-10-18 Thread via lldb-commits
llvmbot wrote: @llvm/pr-subscribers-lldb Author: Alex Langford (bulbazord) Changes The implementation of the templated `Get` function contains UB. For example, the "GetDoubleUnaligned" unit test causes `Get` to perform an unaligned 8 byte read. This violates the `double` alignment requir

[Lldb-commits] [libcxx] [lldb] [lldb][test] Don't run libc++ API tests without a locally built libc++ (PR #162657)

2025-10-18 Thread via lldb-commits
github-actions[bot] wrote: :warning: C/C++ code formatter, clang-format found issues in your code. :warning: You can test this locally with the following command: ``bash git-clang-format --diff origin/main HEAD --extensions cpp -- libcxx/src/memory.cpp `` :warning: The

[Lldb-commits] [clang] [clang-tools-extra] [flang] [lldb] [llvm] [clang] Move options from clangDriver into new clangOptions library (NFC) (PR #163659)

2025-10-18 Thread Naveen Seth Hanig via lldb-commits
naveen-seth wrote: Hi, sorry for this may reviewers getting added for this NFC. My next patch (see [comment](https://github.com/llvm/llvm-project/pull/152770#discussion_r2430756918)) will fully remove the dependency of `clangFrontend` on `clangDriver`. At that point, I will also update any `

[Lldb-commits] [lldb] [debugserver] Implement MultiMemRead packet (PR #162670)

2025-10-18 Thread Felipe de Azevedo Piovezan via lldb-commits
@@ -3160,6 +3165,140 @@ rnb_err_t RNBRemote::HandlePacket_m(const char *p) { return SendPacket(ostrm.str()); } +/// Returns true if `str` starts with `prefix`. +static bool starts_with(std::string_view str, std::string_view prefix) { + return str.size() >= prefix.size() &&

[Lldb-commits] [lldb] [LLDB][Stats] Calculate active time to first Bt (PR #161604)

2025-10-18 Thread Greg Clayton via lldb-commits
https://github.com/clayborg requested changes to this pull request. I am not sure this PR makes sense. Everything in this PR can be deduced from the data that is in the statistics. Many issues with the counting of the time as seen in inline comments and I am not sure what this will tell us that

[Lldb-commits] [lldb] [lldb][test] Wait for a file before attempting to attach to lldb-server test inferior (PR #162064)

2025-10-18 Thread David Spickett via lldb-commits
https://github.com/DavidSpickett created https://github.com/llvm/llvm-project/pull/162064 Fixes #161510 Addresses the Linux parts of #138085 The situation we have to handle here is systems where Yama ptrace_scope set to 1. > 1 - restricted ptrace: a process must have a predefined relationshi

[Lldb-commits] [lldb] [lldb][Darwin] Add `process launch --memory-tagging` option (PR #162944)

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

[Lldb-commits] [lldb] Make SBBreakpoint/SBBreakpointLocation.SetCondition(nullptr) work again. (PR #162370)

2025-10-18 Thread Jonas Devlieghere via lldb-commits
@@ -0,0 +1,85 @@ +//===-- BreakpointClearConditionTest.cpp +//===// JDevlieghere wrote: ```suggestion //===--===// ``` https://github.com/llvm/llvm-pr

[Lldb-commits] [lldb] [lldb][Language] Simplify SourceLanguage::GetDescription (PR #161804)

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

[Lldb-commits] [lldb] [lldb][DWARFASTParserClang] Added a check for the specialization existence (PR #154123)

2025-10-18 Thread Timur Golubovich via lldb-commits
https://github.com/tgs-sc updated https://github.com/llvm/llvm-project/pull/154123 >From 42a5c3d74a1a191fda53edf329a2e50fb873cb85 Mon Sep 17 00:00:00 2001 From: Timur Golubovich Date: Mon, 8 Sep 2025 14:43:50 +0300 Subject: [PATCH] [lldb][DWARFASTParserClang] Added a check for the specializati

[Lldb-commits] [lldb] [lldb] Fix TypeSystemClang::GetBasicTypeEnumeration for 128-bit int types (PR #162278)

2025-10-18 Thread Matej Košík via lldb-commits
https://github.com/sedymrak updated https://github.com/llvm/llvm-project/pull/162278 From 04fea010905c6a24dd5b51e3cb7ff96c4b33d40d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matej=20Ko=C5=A1=C3=ADk?= Date: Tue, 7 Oct 2025 12:18:43 +0200 Subject: [PATCH 1/2] [lldb] Fix the TypeSystemClang::GetBasi

[Lldb-commits] [lldb] [debugserver] Implement MultiMemRead packet (PR #162670)

2025-10-18 Thread Jason Molenda via lldb-commits
@@ -3160,6 +3165,140 @@ rnb_err_t RNBRemote::HandlePacket_m(const char *p) { return SendPacket(ostrm.str()); } +/// Returns true if `str` starts with `prefix`. +static bool starts_with(std::string_view str, std::string_view prefix) { + return str.size() >= prefix.size() &&

[Lldb-commits] [lldb] [lldb-dap] Test gardening, enabling tests and improving doc comments. (PR #140777)

2025-10-18 Thread John Harrison via lldb-commits
https://github.com/ashgti closed https://github.com/llvm/llvm-project/pull/140777 ___ lldb-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

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

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

[Lldb-commits] [lldb] [lldb] Avoid copying header just to overwrite it (PR #160555)

2025-10-18 Thread Justin Cady via lldb-commits
https://github.com/justincady closed https://github.com/llvm/llvm-project/pull/160555 ___ lldb-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

[Lldb-commits] [lldb] [debugserver] Implement MultiMemRead packet (PR #162670)

2025-10-18 Thread Dave Lee via lldb-commits
@@ -3160,6 +3165,140 @@ rnb_err_t RNBRemote::HandlePacket_m(const char *p) { return SendPacket(ostrm.str()); } +/// Returns true if `str` starts with `prefix`. +static bool starts_with(std::string_view str, std::string_view prefix) { + return str.size() >= prefix.size() &&

[Lldb-commits] [lldb] [lldb] Support mangled type names in `memory read` (PR #160601)

2025-10-18 Thread David Spickett via lldb-commits
DavidSpickett wrote: > I have tried a few approaches to make C++ work as a test for this change, but > could not get it to work. Fair enough, the Swift example is enough to know who to complain to in future :) https://github.com/llvm/llvm-project/pull/160601 ___

[Lldb-commits] [lldb] [lldb-dap][test] create temp source file in test directory. (PR #163383)

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

[Lldb-commits] [lldb] [lldb-dap] Unify the timeouts for the DAP tests (PR #163292)

2025-10-18 Thread John Harrison via lldb-commits
@@ -27,6 +27,10 @@ Literal, ) +# set timeout based on whether ASAN was enabled or not. Increase +# timeout by a factor of 10 if ASAN is enabled. +DEFAULT_TIMEOUT = 10 * (10 if ("ASAN_OPTIONS" in os.environ) else 1) ashgti wrote: There is one other case wh

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

2025-10-18 Thread Kees Cook via lldb-commits
kees wrote: > please cc me on the email thread regarding a video call. FYI, I'll be at '25 > dev mtng. > > I think there is some confusion in this thread about how to tell the compiler > about intentional data loss. > > The UX I like the most is something like the following: > > ```c > void

[Lldb-commits] [lldb] [lldb][test] check if CoreDumping is supported at runtime (PR #161385)

2025-10-18 Thread Daniel Thornburgh via lldb-commits
https://github.com/mysterymath updated https://github.com/llvm/llvm-project/pull/161385 >From bbc894aab1a2c58611b84025362422f5aa0821ac Mon Sep 17 00:00:00 2001 From: Ebuka Ezike Date: Tue, 30 Sep 2025 14:22:55 +0100 Subject: [PATCH 1/4] Revert "[lldb][test] check if CoreDumping info is support

[Lldb-commits] [lldb] [lldb] Implement Process::ReadMemoryRanges (PR #163651)

2025-10-18 Thread David Spickett via lldb-commits
@@ -1971,6 +1971,34 @@ size_t Process::ReadMemory(addr_t addr, void *buf, size_t size, Status &error) { } } +llvm::SmallVector> +Process::ReadMemoryRanges(llvm::ArrayRef> ranges, + llvm::MutableArrayRef buffer) { + llvm::SmallVector> results; + +

[Lldb-commits] [lldb] [lldb][MachO][NFC] Extract ObjC metadata symbol parsing into helper function (PR #161536)

2025-10-18 Thread Michael Buch via lldb-commits
https://github.com/Michael137 created https://github.com/llvm/llvm-project/pull/161536 Just a simple de-duplication of the same code. We saw a bug here recently (https://github.com/llvm/llvm-project/pull/161521). Might as well isolate this all in one place. rdar://158159242 >From f4e7b75aebad

[Lldb-commits] [lldb] [lldb][Expression] Emit a 'Note' diagnostic that indicates the language used for expression evaluation (PR #161688)

2025-10-18 Thread Michael Buch via lldb-commits
@@ -0,0 +1,77 @@ +# RUN: split-file %s %t +# RUN: %clang_host -g %t/main.cpp -o %t.out +# +# RUN: %lldb -x -b -o "settings set interpreter.stop-command-source-on-error false" \ +# RUN: -s %t/no-target.input 2>&1 | FileCheck %s --check-prefix=CHECK-NO-TARGET +# +# RUN: %lld

[Lldb-commits] [lldb] 25933f6 - [debugserver][NFC] Make helper functions have internal linkage (#162307)

2025-10-18 Thread via lldb-commits
Author: Felipe de Azevedo Piovezan Date: 2025-10-07T14:46:02-07:00 New Revision: 25933f62dc261c394361ff8b42f40196ee36f44e URL: https://github.com/llvm/llvm-project/commit/25933f62dc261c394361ff8b42f40196ee36f44e DIFF: https://github.com/llvm/llvm-project/commit/25933f62dc261c394361ff8b42f40196e

[Lldb-commits] [lldb] [lldb] Add type hints to gdbclientutils.py and use abstract base class (PR #162172)

2025-10-18 Thread Daniel Sanders via lldb-commits
https://github.com/dsandersllvm updated https://github.com/llvm/llvm-project/pull/162172 >From bd8a1e123b468c5e9f2251d2a7f55d9c22069396 Mon Sep 17 00:00:00 2001 From: Daniel Sanders Date: Fri, 3 Oct 2025 20:05:11 -0700 Subject: [PATCH 1/2] [lldb] Add type hints to gdbclientutils.py and fix issu

[Lldb-commits] [lldb] update lldb-server platform help text (PR #162730)

2025-10-18 Thread Chad Smith via lldb-commits
https://github.com/cs01 created https://github.com/llvm/llvm-project/pull/162730 The lldb-server platform help text is inconsistent with lldb-server gdbserver help text. This PR modernizes the platform server to use LLVM's [TableGen](https://llvm.org/docs/TableGen/)-based option parsing (matchi

[Lldb-commits] [lldb] [LLDB][ProcessWindows] Set exit status on instance rather than going through all targets (PR #159308)

2025-10-18 Thread via lldb-commits
https://github.com/Nerixyz milestoned https://github.com/llvm/llvm-project/pull/159308 ___ lldb-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

[Lldb-commits] [lldb] update lldb-server platform help text (PR #162730)

2025-10-18 Thread Chad Smith via lldb-commits
https://github.com/cs01 updated https://github.com/llvm/llvm-project/pull/162730 >From eab11a497bcb5b1fc023dff25ba732a67bb22199 Mon Sep 17 00:00:00 2001 From: Chad Smith Date: Thu, 9 Oct 2025 11:52:01 -0700 Subject: [PATCH] update lldb-server platform help text --- ...s.test => TestGdbserverEr

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

2025-10-18 Thread Justin Stitt via lldb-commits
@@ -339,6 +389,8 @@ ConvertTypeToDiagnosticString(ASTContext &Context, QualType Ty, << "' " << Values << ")"; return DecoratedString; } + +TryConvertOverflowBehaviorTypeToDiagnosticString(Context, Ty, S); JustinStitt wrote: OK, I'll add

[Lldb-commits] [lldb] [llvm] [lldb-dap] Add multi-session support with shared debugger instances (PR #163653)

2025-10-18 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/packages/Python/lldbsuite/test/tools/lldb-dap/dap_server.py lldb/

[Lldb-commits] [lldb] [lldb] Adjust MainLoop on Win32 to work with mingw (PR #163419)

2025-10-18 Thread John Harrison via lldb-commits
https://github.com/ashgti closed https://github.com/llvm/llvm-project/pull/163419 ___ lldb-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

[Lldb-commits] [lldb] update lldb-server platform help parsing (PR #162730)

2025-10-18 Thread Chad Smith via lldb-commits
https://github.com/cs01 updated https://github.com/llvm/llvm-project/pull/162730 >From 7673bc338d578f7086489cbef099587e92219c41 Mon Sep 17 00:00:00 2001 From: Chad Smith Date: Thu, 9 Oct 2025 11:52:01 -0700 Subject: [PATCH] update lldb-server platform help text --- ...s.test => TestGdbserverEr

[Lldb-commits] [lldb] [llvm] Add AArch64 support to the premerge tests (PR #155274)

2025-10-18 Thread Tom Stellard via lldb-commits
https://github.com/tstellar updated https://github.com/llvm/llvm-project/pull/155274 >From 57697a66cfdddf2028c7260f1ce61ecacc550d00 Mon Sep 17 00:00:00 2001 From: Tom Stellard Date: Mon, 25 Aug 2025 17:15:36 + Subject: [PATCH 01/65] Add AArch64 support to the premerge tests --- .github/wo

[Lldb-commits] [lldb] 8e3eeb8 - [lldb] Fix off-by-one error in ToDwarfSourceLanguage (#162315)

2025-10-18 Thread via lldb-commits
Author: Joshua Peterson Date: 2025-10-08T11:21:45Z New Revision: 8e3eeb854b662beca3e0476199ea6d253dc89752 URL: https://github.com/llvm/llvm-project/commit/8e3eeb854b662beca3e0476199ea6d253dc89752 DIFF: https://github.com/llvm/llvm-project/commit/8e3eeb854b662beca3e0476199ea6d253dc89752.diff LO

[Lldb-commits] [lldb] [LLDB][NativePDB] Use typedef compiler type for typedef types (PR #156250)

2025-10-18 Thread via lldb-commits
@@ -2045,14 +2045,17 @@ TypeSP SymbolFileNativePDB::CreateTypedef(PdbGlobalSymId id) { if (!ts) return nullptr; - ts->GetNativePDBParser()->GetOrCreateTypedefDecl(id); + auto *typedef_decl = ts->GetNativePDBParser()->GetOrCreateTypedefDecl(id); + + CompilerType ct =

[Lldb-commits] [lldb] [lldb] Support shared cache relative objc method types (PR #163663)

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

[Lldb-commits] [lldb] [LLDB][NativePDB] Use typedef compiler type for typedef types (PR #156250)

2025-10-18 Thread via lldb-commits
Nerixyz wrote: > What's the best easiest way to get one? Assuming you have some way to run an interactive shell there: - Build LLDB (with debug symbols) - Run this specific test with `-v` - e.g. `bin/llvm-lit -v /lldb/test/Shell/SymbolFile/NativePDB/simple-types.cpp` - This should fail, but it

[Lldb-commits] [lldb] [lldb] Add support for unique target ids (PR #160736)

2025-10-18 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/debugger/TestDebuggerAPI.py `` :warni

[Lldb-commits] [lldb] [llvm] [lldb] Add type hints to gdbclientutils.py and use abstract base class (PR #162172)

2025-10-18 Thread Daniel Sanders via lldb-commits
dsandersllvm wrote: > If this way will work in 3.9 as well, do it. If not, drop those annotations. > Let's not make this situation more confusing, the pay off isn't there for the > sake of a few type annotations. This is fixed in the latest fixup commits. I also included a small edit to pypro

[Lldb-commits] [lldb] [gdbremote] Document MultiMemRead packet in protocol extensions (PR #162675)

2025-10-18 Thread David Spickett via lldb-commits
@@ -735,6 +735,56 @@ This is a performance optimization, which speeds up debugging by avoiding multiple round-trips for retrieving thread information. The information from this packet can be retrieved using a combination of `qThreadStopInfo` and `m` packets. +### MultiMemRe

[Lldb-commits] [lldb] [lldb] Implement Process::ReadMemoryRanges (PR #163651)

2025-10-18 Thread Felipe de Azevedo Piovezan via lldb-commits
@@ -1571,6 +1571,25 @@ class Process : public std::enable_shared_from_this, virtual size_t ReadMemory(lldb::addr_t vm_addr, void *buf, size_t size, Status &error); + /// Read from multiple memory ranges and write the results into buffer. + ///

[Lldb-commits] [lldb] [lldb] Fix TypeSystemClang::GetBasicTypeEnumeration for 128-bit int types (PR #162278)

2025-10-18 Thread Michael Buch via lldb-commits
@@ -159,9 +159,9 @@ TEST_F(TestTypeSystemClang, TestGetBasicTypeFromName) { GetBasicQualType("unsigned long long")); EXPECT_EQ(GetBasicQualType(eBasicTypeUnsignedLongLong), GetBasicQualType("unsigned long long int")); - EXPECT_EQ(GetBasicQualType(eBas

[Lldb-commits] [lldb] [lldb] Disabling tests in win32 to investigate the root cause. (PR #161931)

2025-10-18 Thread John Harrison via lldb-commits
https://github.com/ashgti ready_for_review https://github.com/llvm/llvm-project/pull/161931 ___ lldb-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

[Lldb-commits] [lldb] Add a scripted way to re-present a stop location (PR #158128)

2025-10-18 Thread via lldb-commits
https://github.com/jimingham closed https://github.com/llvm/llvm-project/pull/158128 ___ lldb-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

[Lldb-commits] [lldb] [lldb][Darwin] Add `process launch --memory-tagging` option (PR #162944)

2025-10-18 Thread Julian Lettner via lldb-commits
@@ -1210,6 +1210,39 @@ static Status LaunchProcessPosixSpawn(const char *exe_path, } } + if (launch_info.GetFlags().Test(eLaunchFlagMemoryTagging)) { +// The following function configures the spawn attributes to launch the +// process with memory tagging explic

[Lldb-commits] [lldb] [llvm] Fix spelling of 'auxiliary' in XCOFF and related docs (PR #162870)

2025-10-18 Thread via lldb-commits
https://github.com/smallzhong created https://github.com/llvm/llvm-project/pull/162870 Corrects multiple instances of the misspelling 'auxilliary' to 'auxiliary' in comments and documentation across XCOFF-related source files, headers, and tests. From e3b3afd2a5b44c8b7e8f46dcdc88fe00799bbe73

[Lldb-commits] [lldb] [llvm] [lldb][Language] Make SourceLanguage::GetDescription for language version (PR #162050)

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

[Lldb-commits] [lldb] support attaching by name for platform android (PR #160931)

2025-10-18 Thread Chad Smith via lldb-commits
https://github.com/cs01 edited https://github.com/llvm/llvm-project/pull/160931 ___ lldb-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

[Lldb-commits] [lldb] [lldb] Implement Process::ReadMemoryRanges (PR #163651)

2025-10-18 Thread Felipe de Azevedo Piovezan via lldb-commits
https://github.com/felipepiovezan created https://github.com/llvm/llvm-project/pull/163651 This commit introduces a base-class implementation for a method that reads memory from multiple ranges at once. This implementation simply calls the underlying `ReadMemoryFromInferior` method on each req

[Lldb-commits] [lldb] [lldb][Language] Add Language::GetDisplayNameForLanguageType API (PR #161803)

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

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

2025-10-18 Thread Jonas Devlieghere via lldb-commits
@@ -268,6 +266,19 @@ enum StopReason { eStopReasonHistoryBoundary, }; +/// Scripted Frame Provider Merge Strategies. +enum ScriptedFrameProviderMergeStrategy { + /// Replace the entire stack with scripted frames + eScriptedFrameProviderMergeStrategyReplace = 0, + /// Prep

[Lldb-commits] [lldb] [lldb][windows] add support for out of PATH python.dll resolution (PR #162509)

2025-10-18 Thread Saleem Abdulrasool via lldb-commits
compnerd wrote: How about changing this slightly: ```suggestion #if defined(_WIN32) && defined(LLDB_PYTHON_DLL_RELATIVE_PATH) ``` https://github.com/llvm/llvm-project/pull/162509 ___ lldb-commits mailing list lldb-c

[Lldb-commits] [lldb] [lldb-dap] Add stdio redirection for integrated and external terminals (PR #161089)

2025-10-18 Thread Sergei Druzhkov via lldb-commits
https://github.com/DrSergei closed https://github.com/llvm/llvm-project/pull/161089 ___ lldb-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

[Lldb-commits] [lldb] [llvm] [lldb][Expression] Emit a 'Note' diagnostic that indicates the language used for expression evaluation (PR #161688)

2025-10-18 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/source/Plugins/ExpressionParser/Clang/Cla

[Lldb-commits] [lldb] [LLDB] Add load core time to target metrics (PR #161581)

2025-10-18 Thread Jacob Lalonde via lldb-commits
@@ -148,6 +148,11 @@ TargetStats::ToJSON(Target &target, target_metrics_json.try_emplace("targetCreateTime", m_create_time.get().count()); +if (m_load_core_time.get().count() > 0) { Jlalond wrote: I'd prefer to not

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

2025-10-18 Thread via lldb-commits
GeorgeHuyubo wrote: @jimingham Actually CallLocateModuleCallbackIfSet also go through ModuleList::GetSharedModule eventually. But it will give the callback function a chance to locate us the stripped out debuginfo symbol file if available https://github.com/llvm/llvm-project/pull/160199 _

[Lldb-commits] [lldb] [lldb][windows] add support for out of PATH python.dll resolution (PR #162509)

2025-10-18 Thread Charles Zablit via lldb-commits
@@ -167,6 +167,12 @@ function(add_lldb_executable name) ) target_link_libraries(${name} PRIVATE ${ARG_LINK_LIBS}) + if(WIN32) +list(FIND ARG_LINK_LIBS liblldb LIBLLDB_INDEX) +if(NOT LIBLLDB_INDEX EQUAL -1) + target_link_options(${name} PRIVATE "/DELAYLOAD:$.

[Lldb-commits] [lldb] [lldb] Implement Process::ReadMemoryRanges (PR #163651)

2025-10-18 Thread Jason Molenda via lldb-commits
@@ -1571,6 +1571,25 @@ class Process : public std::enable_shared_from_this, virtual size_t ReadMemory(lldb::addr_t vm_addr, void *buf, size_t size, Status &error); + /// Read from multiple memory ranges and write the results into buffer. + ///

[Lldb-commits] [lldb] [lldb] Disabling tests in win32 to investigate the root cause. (PR #161931)

2025-10-18 Thread John Harrison via lldb-commits
https://github.com/ashgti created https://github.com/llvm/llvm-project/pull/161931 These tests are failing on win32 platforms, disabling while I investigate the root cause. >From 9432dfe64848ca172f8b5a74006d0a297bae1b6c Mon Sep 17 00:00:00 2001 From: John Harrison Date: Fri, 3 Oct 2025 17:52:

[Lldb-commits] [lldb] [gdbremote] Document MultiMemRead packet in protocol extensions (PR #162675)

2025-10-18 Thread David Spickett via lldb-commits
@@ -735,6 +735,56 @@ This is a performance optimization, which speeds up debugging by avoiding multiple round-trips for retrieving thread information. The information from this packet can be retrieved using a combination of `qThreadStopInfo` and `m` packets. +### MultiMemRe

[Lldb-commits] [lldb] [debugserver] Implement MultiMemRead packet (PR #162670)

2025-10-18 Thread Dave Lee via lldb-commits
@@ -3160,6 +3165,140 @@ rnb_err_t RNBRemote::HandlePacket_m(const char *p) { return SendPacket(ostrm.str()); } +/// Returns true if `str` starts with `prefix`. +static bool starts_with(std::string_view str, std::string_view prefix) { + return str.size() >= prefix.size() &&

[Lldb-commits] [lldb] [lldb] fix the "RegisterValue::SetValueFromData" method for 128-bit integer registers (PR #163646)

2025-10-18 Thread Matej Košík via lldb-commits
https://github.com/sedymrak edited https://github.com/llvm/llvm-project/pull/163646 ___ lldb-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

[Lldb-commits] [lldb] Make SBBreakpoint/SBBreakpointLocation.SetCondition(nullptr) work again. (PR #162370)

2025-10-18 Thread via lldb-commits
https://github.com/jimingham updated https://github.com/llvm/llvm-project/pull/162370 >From ee58ec0f67b5ef70d7c11756f5931ad08ed7c4dc Mon Sep 17 00:00:00 2001 From: Jim Ingham Date: Tue, 7 Oct 2025 13:44:45 -0700 Subject: [PATCH 1/3] Make SBBreakpoint/SBBreakpointLocation.SetCondition(nullptr)

[Lldb-commits] [lldb] 397181d - [lldb] Fix use after free on ModuleList::RemoveSharedModuleIfOrphaned (#155331)

2025-10-18 Thread via lldb-commits
Author: Augusto Noronha Date: 2025-10-08T15:35:24-07:00 New Revision: 397181d5c191cf2f7ba3b4408383da6e5a149052 URL: https://github.com/llvm/llvm-project/commit/397181d5c191cf2f7ba3b4408383da6e5a149052 DIFF: https://github.com/llvm/llvm-project/commit/397181d5c191cf2f7ba3b4408383da6e5a149052.dif

[Lldb-commits] [lldb] [lldb][mcp] Get the running MCP server connection information (PR #162752)

2025-10-18 Thread Alexandre Perez via lldb-commits
aperez wrote: @splhack I can put up a PR with a `--json` option as follow up. https://github.com/llvm/llvm-project/pull/162752 ___ lldb-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

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

2025-10-18 Thread Jonas Devlieghere via lldb-commits
@@ -0,0 +1,52 @@ +//===-- ScriptedFrameProvider.h *- 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: Apach

[Lldb-commits] [lldb] [LLDB][NativePDB] Consolidate simple types (PR #163209)

2025-10-18 Thread Jonas Devlieghere via lldb-commits
@@ -985,16 +990,27 @@ lldb_private::npdb::GetCompilerTypeForSimpleKind(SimpleTypeKind kind) { return lldb::eBasicTypeVoid; case SimpleTypeKind::WideCharacter: return lldb::eBasicTypeWChar; - default: + + // unsupported JDevlieghere wrote: ```sugge

[Lldb-commits] [lldb] [LLDB][PDB] Run `pointers.test` with both plugins (PR #163623)

2025-10-18 Thread via lldb-commits
https://github.com/Nerixyz created https://github.com/llvm/llvm-project/pull/163623 The `pointers.test` was only run with the DIA plugin. I made the following changes: - Remove the check for the function type. The types of the function are different in the plugins: ``` Native: Type{0x

[Lldb-commits] [lldb] [lldb] Correct bridgeOS -> BridgeOS spelling (PR #163479)

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

[Lldb-commits] [lldb] [lldb-dap] Improve the runInTerminal ux. (PR #163830)

2025-10-18 Thread John Harrison via lldb-commits
https://github.com/ashgti updated https://github.com/llvm/llvm-project/pull/163830 >From a2248f10e60868634f620b62b3765703f623c6f5 Mon Sep 17 00:00:00 2001 From: John Harrison Date: Thu, 16 Oct 2025 10:27:31 -0700 Subject: [PATCH 1/2] [lldb-dap] Improve the runInTerminal ux. This updates lldb-d

[Lldb-commits] [lldb] [llvm] Add AArch64 support to the premerge tests (PR #155274)

2025-10-18 Thread Tom Stellard via lldb-commits
https://github.com/tstellar edited https://github.com/llvm/llvm-project/pull/155274 ___ lldb-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

[Lldb-commits] [lldb] [lldb][DWARFASTParserClang] Simplify obsolete error condition for malformed array member type offsets (PR #160132)

2025-10-18 Thread Adrian Prantl via lldb-commits
https://github.com/adrian-prantl approved this pull request. That looks like it outlived its usefulness. https://github.com/llvm/llvm-project/pull/160132 ___ lldb-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/l

[Lldb-commits] [lldb] [lldb][RISCV] Fix return value reading (PR #163931)

2025-10-18 Thread via lldb-commits
llvmbot wrote: @llvm/pr-subscribers-lldb @llvm/pr-subscribers-backend-risc-v Author: Georgiy Samoylov (sga-sc) Changes This patch fixes return value reading after `thread step-out` command on RISC-V architecture. Also it fixes TestReturnValue.py test --- Full diff: https://github.com/llv

[Lldb-commits] [lldb] [lldb][NFCI] Refactor AppleObjCClassDescriptorV2 method_t parsing functions (PR #163291)

2025-10-18 Thread Felipe de Azevedo Piovezan via lldb-commits
@@ -266,22 +267,47 @@ bool ClassDescriptorV2::method_list_t::Read(Process *process, return true; } -bool ClassDescriptorV2::method_t::Read(Process *process, lldb::addr_t addr, - lldb::addr_t relative_selector_base_addr, -

[Lldb-commits] [lldb] [lldb][Darwin] Add `process launch --memory-tagging` option (PR #162944)

2025-10-18 Thread Julian Lettner via lldb-commits
https://github.com/yln closed https://github.com/llvm/llvm-project/pull/162944 ___ lldb-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

[Lldb-commits] [lldb] [LLDB][Stats] Calculate active time to first Bt (PR #161604)

2025-10-18 Thread Jacob Lalonde via lldb-commits
@@ -513,6 +518,63 @@ llvm::json::Value DebuggerStats::ReportStatistics( return std::move(global_stats); } +void TargetStats::SetFirstBtTime(lldb::ProcessSP process_sp, Thread &thread) { + if (m_first_bt_time_set) +return; + + // Our goal here is to calculate the total

[Lldb-commits] [lldb] [debugserver] Implement MultiMemRead packet (PR #162670)

2025-10-18 Thread David Spickett via lldb-commits
@@ -0,0 +1,72 @@ +""" +Tests the exit code/description coming from the debugserver. +""" + +import lldb +from lldbsuite.test.decorators import * +from lldbsuite.test.lldbtest import * +from lldbsuite.test import lldbutil + + +@skipUnlessDarwin +@skipIfOutOfTreeDebugserver +class T

[Lldb-commits] [lldb] Fix a potential use-after-free in StopInfoBreakpoint. (PR #163471)

2025-10-18 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/functionalities/breakpoint/cal

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

2025-10-18 Thread Kees Cook via lldb-commits
kees wrote: In looking at what's here, I suddenly realize that I think we accidentally deviated a bit on naming, in that the trap behavior got named "no_wrap" which is ambiguous. For example, a future overflow resolution behavior can be added like "saturate", which isn't wrapping either, and s

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

2025-10-18 Thread via lldb-commits
Author: nerix Date: 2025-09-23T11:34:48+02:00 New Revision: e08d8e3d16d6994df5e42cee7c2672d2fe9cc46c URL: https://github.com/llvm/llvm-project/commit/e08d8e3d16d6994df5e42cee7c2672d2fe9cc46c DIFF: https://github.com/llvm/llvm-project/commit/e08d8e3d16d6994df5e42cee7c2672d2fe9cc46c.diff LOG: [L

[Lldb-commits] [lldb] [lldb][NFC] Remove unused find_program logic (PR #163446)

2025-10-18 Thread via lldb-commits
llvmbot wrote: @llvm/pr-subscribers-lldb Author: Alex Langford (bulbazord) Changes All the unifdef logic was moved to source/API/CMakeLists.txt. This was left behind during that move. --- Full diff: https://github.com/llvm/llvm-project/pull/163446.diff 1 Files Affected: - (modified) l

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

2025-10-18 Thread via lldb-commits
@@ -44,6 +47,31 @@ nested_name_specifier = type_name "::" | namespace_name '::' | nested_name_specifier identifier "::" ; +type_id = type_specifier_seq [abstract_declarator] ; + +type_specifier_seq = type_specifier [type_specifier];

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

2025-10-18 Thread via lldb-commits
@@ -44,6 +47,31 @@ nested_name_specifier = type_name "::" | namespace_name '::' | nested_name_specifier identifier "::" ; +type_id = type_specifier_seq [abstract_declarator] ; + +type_specifier_seq = type_specifier [type_specifier];

[Lldb-commits] [lldb] [llvm] [lldb][Expression] Emit a 'Note' diagnostic that indicates the language used for expression evaluation (PR #161688)

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

[Lldb-commits] [lldb] [lldb][Language] Make SourceLanguage::GetDescription for language version (PR #162050)

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

[Lldb-commits] [clang] [clang-tools-extra] [compiler-rt] [flang] [libcxx] [libcxxabi] [lld] [lldb] [llvm] [Inclusive Language] migrate "sanity" checks to "soundness" checks (PR #156995)

2025-10-18 Thread Louis Dionne via lldb-commits
https://github.com/ldionne closed https://github.com/llvm/llvm-project/pull/156995 ___ lldb-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

[Lldb-commits] [lldb] [debugserver] Implement MultiMemRead packet (PR #162670)

2025-10-18 Thread David Spickett via lldb-commits
@@ -0,0 +1,10 @@ +#include +#include + +int main(int argc, char **argv) { + char *memory = malloc(1024); + memset(memory, '-', 1024); + for (int i = 0; i < 50; i++) +memory[i] = 'a' + i; + return 0; // break here DavidSpickett wrote: The idea here is th

[Lldb-commits] [lldb] [lldb][Language] Sync LanguageType enumeration with DWARF codes (PR #161810)

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

[Lldb-commits] [lldb] [lldb] Correct BridgeOS spelling and ignore case when parsing the SDK (PR #163479)

2025-10-18 Thread Adrian Prantl via lldb-commits
@@ -65,27 +65,27 @@ bool XcodeSDK::operator==(const XcodeSDK &other) const { } static XcodeSDK::Type ParseSDKName(llvm::StringRef &name) { - if (name.consume_front("MacOSX")) + if (name.consume_front_insensitive("MacOSX")) adrian-prantl wrote: I think I wou

[Lldb-commits] [lldb] support attaching by name for platform android (PR #160931)

2025-10-18 Thread Chad Smith via lldb-commits
cs01 wrote: @JDevlieghere This has been reviewed by @walter-erquinigo and is ready to merge unless you have other feedback https://github.com/llvm/llvm-project/pull/160931 ___ lldb-commits mailing list [email protected] https://lists.llvm.or

[Lldb-commits] [lldb] Refine `qWasmCallStack` documentation (PR #163803)

2025-10-18 Thread Max Desiatov via lldb-commits
https://github.com/MaxDesiatov created https://github.com/llvm/llvm-project/pull/163803 `qWasmCallStack` is not clear if the list of PC values is delimited and the size of these values. >From 2d50565e6ad91edc4700484e183fb974d3281cdb Mon Sep 17 00:00:00 2001 From: Max Desiatov Date: Thu, 16 Oc

[Lldb-commits] [clang] [lldb] [llvm] [ADT] Mark StringSwitch Cases with 6+ arguments as deprecated. NFC. (PR #163405)

2025-10-18 Thread Jakub Kuderski via lldb-commits
kuhar wrote: > Can I ask why? And why 6+? > > Have particular issues been seen with these? I want to gradually deprecate all versions that don't take intializer_list, 6 is an arbitrary cutoff point that keeps the number of changes in the tree manageable. I didn't want to update 100 files in o

[Lldb-commits] [lldb] [lldb] Add type hints to gdbclientutils.py and use abstract base class (PR #162172)

2025-10-18 Thread Daniel Sanders via lldb-commits
https://github.com/dsandersllvm closed https://github.com/llvm/llvm-project/pull/162172 ___ lldb-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

[Lldb-commits] [clang] [clang-tools-extra] [lldb] [clang] NFCI: Clean up `CompilerInstance::create{File, Source}Manager()` (PR #160748)

2025-10-18 Thread Michael Kruse via lldb-commits
Meinersbur wrote: > > There is an additional reference to this function in polly > > https://github.com/llvm/llvm-project/blob/d48bda5421c5af9baa5bc98ba4e3a453937ff96a/polly/lib/External/isl/interface/extract_interface.cc#L550 > > I'm not sure what to do with these TBH. That file seems to be try

[Lldb-commits] [lldb] [debugserver] Support for `qMemTags` packet (PR #160952)

2025-10-18 Thread David Spickett via lldb-commits
@@ -0,0 +1,29 @@ +#include +#include +#include +#include + +// Produce some names on the trace +const size_t tag_granule = 16; +uint8_t *my_malloc(void) { return malloc(2 * tag_granule); } +uint8_t *allocate(void) { return my_malloc(); } + +void my_free(void *ptr) { free(ptr);

[Lldb-commits] [lldb] [lldb][test] Don't run libc++ API tests without a locally built libc++ (PR #162657)

2025-10-18 Thread via lldb-commits
llvmbot wrote: @llvm/pr-subscribers-lldb Author: Michael Buch (Michael137) Changes API tests in the `libc++` category will try their best to build against a locally built libc++. If none exists, the `Makefile.rules` currently fall back to using the system libc++. The issue with falling

  1   2   3   4   5   6   7   >