[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 Michael Spencer via lldb-commits
https://github.com/Bigcheese approved this pull request. Looks good with some minor changes. This should still wait for another approval because it's a big change even though it's NFC. https://github.com/llvm/llvm-project/pull/163659 ___ lldb-commits

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

2025-10-18 Thread David Spickett via lldb-commits
https://github.com/DavidSpickett commented: What's the thinking for doing this in "ptrace style" where the caller allocates a buffer and gives it to the function, vs. allocating the buffer on behalf of the caller? The latter would make it impossible to get the buffer size wrong, but on the ot

[Lldb-commits] [lldb] faf070f - [lldb][test] TestExprDefinitionInDylib.py adjust test to account for older compiler versions

2025-10-18 Thread Michael Buch via lldb-commits
Author: Michael Buch Date: 2025-10-02T14:08:40+01:00 New Revision: faf070f062ac7f3861092ab110982a613d7dfe1b URL: https://github.com/llvm/llvm-project/commit/faf070f062ac7f3861092ab110982a613d7dfe1b DIFF: https://github.com/llvm/llvm-project/commit/faf070f062ac7f3861092ab110982a613d7dfe1b.diff

[Lldb-commits] [lldb] [lldb][ClangExpressionParser] Reset DiagnosticManager before we create persistent variables (PR #160074)

2025-10-18 Thread via lldb-commits
llvmbot wrote: @llvm/pr-subscribers-lldb Author: Michael Buch (Michael137) Changes Here's an example crash that we've seen sporadically over the years: ``` 0 libsystem_kernel.dylib 0x19d392388 __pthread_kill + 8 1 libsystem_pthread.dylib0x19d3cb8

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

2025-10-18 Thread Michael Buch via lldb-commits
https://github.com/Michael137 updated https://github.com/llvm/llvm-project/pull/161804 >From 159ee47db1b9f6f609fe8b6b3e866f995d8f2e5c Mon Sep 17 00:00:00 2001 From: Michael Buch Date: Fri, 3 Oct 2025 09:37:52 +0100 Subject: [PATCH 1/3] [lldb][Language] Simplify SourceLanguage::GetDescription C

[Lldb-commits] [lldb] [lldb] Fix assertion caused by invalid SupportFileSP (PR #162710)

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

[Lldb-commits] [lldb] Fix empty register set when trying to get size of register (PR #162890)

2025-10-18 Thread via lldb-commits
https://github.com/aokblast created https://github.com/llvm/llvm-project/pull/162890 GetSharedRegisterInfoVector is a function to get the singleton of total register info. Also, PrivateGetRegisterCount assumes that we have already filled the object in GetSharedRegisterInfoVector and panic when

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

2025-10-18 Thread Oliver Hunt via lldb-commits
@@ -9744,6 +9744,16 @@ static void DiagnoseNarrowingInInitList(Sema &S, case NK_Constant_Narrowing: { // A constant value was narrowed. + +// Overflow behavior destination types with a 'wrap' kind can elide ojhunt wrote: No, you are misunderstanding

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

2025-10-18 Thread Med Ismail Bennani via lldb-commits
https://github.com/medismailben updated https://github.com/llvm/llvm-project/pull/161870 >From 70d72a2e14f8d937b70aa042ea5582b9127ae1cc Mon Sep 17 00:00:00 2001 From: Med Ismail Bennani Date: Sat, 4 Oct 2025 15:37:29 +0100 Subject: [PATCH] [lldb] Introduce ScriptedFrameProvider for real threads

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

2025-10-18 Thread Jonas Devlieghere via lldb-commits
@@ -297,6 +354,463 @@ class JSONRPCTransport : public IOTransport { static constexpr llvm::StringLiteral kMessageSeparator = "\n"; }; -} // namespace lldb_private +/// A handler for the response to an outgoing request. +template +using Reply = +std::conditional_t, +

[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
sedymrak wrote: > Thanks for the reproducer. Please include it in the PR description as well, > as it may be the closest thing we get to a test case. I am not sure if I understand correctly what you meant I should do. I have edited my first post on this matter to include the instructions how on

[Lldb-commits] [lldb] 550b2ef - [lldb][test][NFC] Rename Language.cpp to LanguageTest.cpp

2025-10-18 Thread Michael Buch via lldb-commits
Author: Michael Buch Date: 2025-10-06T07:55:12+01:00 New Revision: 550b2ef041ba16ee8b5f55b5f2307f501b2c15a0 URL: https://github.com/llvm/llvm-project/commit/550b2ef041ba16ee8b5f55b5f2307f501b2c15a0 DIFF: https://github.com/llvm/llvm-project/commit/550b2ef041ba16ee8b5f55b5f2307f501b2c15a0.diff

[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 updated https://github.com/llvm/llvm-project/pull/161089 >From a6968292f13750262c4cf22d55d8150917cb46be Mon Sep 17 00:00:00 2001 From: Druzhkov Sergei Date: Sun, 28 Sep 2025 12:45:01 +0300 Subject: [PATCH 1/2] [lldb-dap] Add stdio redirection for integrated and exte

[Lldb-commits] [lldb] 332b4de - [lldb][IRExecutionUnit] Return error on failure to resolve function address (#161363)

2025-10-18 Thread via lldb-commits
Author: Michael Buch Date: 2025-10-01T08:37:15+01:00 New Revision: 332b4deb0dfe9f4d11325513d4122e69024beea9 URL: https://github.com/llvm/llvm-project/commit/332b4deb0dfe9f4d11325513d4122e69024beea9 DIFF: https://github.com/llvm/llvm-project/commit/332b4deb0dfe9f4d11325513d4122e69024beea9.diff

[Lldb-commits] [lldb] [lldb][docs] DW_AT_APPLE_major_runtime_version -> DW_AT_APPLE_major_runtime_vers (PR #162062)

2025-10-18 Thread Michael Buch via lldb-commits
https://github.com/Michael137 created https://github.com/llvm/llvm-project/pull/162062 `DW_AT_APPLE_major_runtime_version` doesn't exist. This should be `DW_AT_APPLE_major_runtime_vers`. >From 8420e7126b8dc07df82371dc49da1c1e702c1e68 Mon Sep 17 00:00:00 2001 From: Michael Buch Date: Mon, 6 Oc

[Lldb-commits] [lldb] [cmake][lldb][test] Respect LIBCXX_LIBDIR_SUBDIR (PR #159106)

2025-10-18 Thread Raul Tambre via lldb-commits
tambry wrote: @Michael137 Added an example in the description. In-tree it's used by Fucshia for multilib runtimes but I myself use them in my downstream to install the libraries into Debian-style triple system directories instead of LLVM's own quadruple-based structure. Ideally this same logi

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

2025-10-18 Thread via lldb-commits
Author: Alex Langford Date: 2025-10-14T15:50:28-07:00 New Revision: a7f1910621e7a68631a61c0f4d50ad6542ee1cd7 URL: https://github.com/llvm/llvm-project/commit/a7f1910621e7a68631a61c0f4d50ad6542ee1cd7 DIFF: https://github.com/llvm/llvm-project/commit/a7f1910621e7a68631a61c0f4d50ad6542ee1cd7.diff

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

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 -- lldb/test/API/tools/lldb-server/main.cpp ```

[Lldb-commits] [lldb] [lldb-dap] Allow empty memory reference in disassemble arguments (PR #162517)

2025-10-18 Thread Jonas Devlieghere via lldb-commits
@@ -156,11 +156,15 @@ DecodeMemoryReference(llvm::StringRef memoryReference); ///Indicates if the key is required to be present, otherwise report an error ///if the key is missing. /// +/// \param[in] allow_empty +///Interpret empty string as a valid value, don't r

[Lldb-commits] [lldb] fca40b3 - [lldb][docs] State that the extension packets doc should be alphabetised

2025-10-18 Thread David Spickett via lldb-commits
Author: David Spickett Date: 2025-10-10T15:03:54Z New Revision: fca40b3b6fdc621e25166cd4b287a9b36b6f46a8 URL: https://github.com/llvm/llvm-project/commit/fca40b3b6fdc621e25166cd4b287a9b36b6f46a8 DIFF: https://github.com/llvm/llvm-project/commit/fca40b3b6fdc621e25166cd4b287a9b36b6f46a8.diff LOG

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

2025-10-18 Thread Med Ismail Bennani via lldb-commits
@@ -1439,13 +1444,133 @@ void Thread::CalculateExecutionContext(ExecutionContext &exe_ctx) { StackFrameListSP Thread::GetStackFrameList() { std::lock_guard guard(m_frame_mutex); - if (!m_curr_frames_sp) -m_curr_frames_sp = -std::make_shared(*this, m_prev_frames

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

2025-10-18 Thread Jonas Devlieghere via lldb-commits
https://github.com/JDevlieghere created https://github.com/llvm/llvm-project/pull/163663 Support the types and name field in the relative method list to be relative to a buffer in the shared cache, not relative to the field in the method list itself. A new magic bit, 0x2000, is attached t

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

2025-10-18 Thread Alex Langford via lldb-commits
bulbazord wrote: Should this be an `ifdef`? https://github.com/llvm/llvm-project/pull/162509 ___ lldb-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

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

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

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

2025-10-18 Thread Walter Erquinigo via lldb-commits
@@ -477,6 +477,248 @@ std::string PlatformAndroid::GetRunAs() { } return run_as.str(); } + +// Helper function to populate process status information from +// /proc/[pid]/status +void PlatformAndroid::PopulateProcessStatusInfo( +lldb::pid_t pid, ProcessInstanceInfo &pro

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

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/examples/python/templates/scripted_frame_provider.py lldb/test/AP

[Lldb-commits] [lldb] [lldb] Ignore trailing spaces on quit confirmation (PR #162263)

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/162263 ___ lldb-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

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

2025-10-18 Thread via lldb-commits
https://github.com/Nerixyz updated https://github.com/llvm/llvm-project/pull/163209 >From cc32535a5a7c0ec28d30e7f029af06b61d78beab Mon Sep 17 00:00:00 2001 From: Nerixyz Date: Mon, 13 Oct 2025 16:20:19 +0200 Subject: [PATCH 1/2] [LLDB][NativePDB] Consolidate simple types --- .../Plugins/Symbo

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

2025-10-18 Thread via lldb-commits
Author: Jacob Lalonde Date: 2025-10-01T21:14:23Z New Revision: b66dfa7273f0d7953965e00af3999315a015a563 URL: https://github.com/llvm/llvm-project/commit/b66dfa7273f0d7953965e00af3999315a015a563 DIFF: https://github.com/llvm/llvm-project/commit/b66dfa7273f0d7953965e00af3999315a015a563.diff LOG:

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

2025-10-18 Thread Sam Elliott via lldb-commits
lenary wrote: That seems reasonable, can you document the reasoning in the commit message please? https://github.com/llvm/llvm-project/pull/163405 ___ lldb-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinf

[Lldb-commits] [lldb] [lldb/cmake] unittests: Breakpoint: remove liblldb dep (PR #162571)

2025-10-18 Thread Kees Cook via lldb-commits
kees wrote: I think this got fixed by commit https://github.com/llvm/llvm-project/commit/1395d4315bf49be64817b79e3863d183bb28c3e1 ? https://github.com/llvm/llvm-project/pull/162571 ___ lldb-commits mailing list [email protected] https://lis

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

2025-10-18 Thread Jason Molenda via lldb-commits
jasonmolenda wrote: Looks very good, I had a couple of small suggestions but thumbs-up from me. https://github.com/llvm/llvm-project/pull/162670 ___ lldb-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/l

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

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/include/lldb/Target/Process.h lldb/sourc

[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][test] Make Linux cpuinfo check more robust (PR #160675)

2025-10-18 Thread via lldb-commits
llvmbot wrote: @llvm/pr-subscribers-lldb Author: David Spickett (DavidSpickett) Changes We were looking for any mention of the feature name in cpuinfo, which could have hit anything including features with common prefixes like sme, sme2, smefa64. Luckily this was not a problem but I'm c

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

2025-10-18 Thread Jonas Devlieghere via lldb-commits
@@ -454,8 +525,13 @@ bool BreakpointLocation::SetBreakpointSite(BreakpointSiteSP &bp_site_sp) { } llvm::Error BreakpointLocation::ClearBreakpointSite() { - if (!m_bp_site_sp) -return llvm::createStringError("no breakpoint site to clear"); + if (!m_bp_site_sp) { +//

[Lldb-commits] [lldb] [lldb][DataFormatter][NFC] LibCxxUnorderedMap: remove unused variable (PR #163226)

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

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

2025-10-18 Thread David Spickett via lldb-commits
@@ -213,22 +213,39 @@ } //-- -// MachTask::MemoryRegionInfo +// MachTask::GetMemoryRegionInfo DavidSpickett wrote: You can send this as it's own PR (or push it direct if you have access). ht

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

2025-10-18 Thread John Harrison via lldb-commits
@@ -155,15 +152,13 @@ def assertCapabilityIsNotSet(self, key: str, msg: Optional[str] = None) -> None: if key in self.dap_server.capabilities: self.assertEqual(self.dap_server.capabilities[key], False, msg) -def verify_breakpoint_hit( -self, br

[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 via lldb-commits
llvmbot wrote: @llvm/pr-subscribers-flang-driver Author: Naveen Seth Hanig (naveen-seth) Changes The goal of this change is to remove dependencies on the Driver. This is part of a larger effort to support driver-managed builds for compilations using C++ named modules and/or Clang modules

[Lldb-commits] [lldb] Delegate to ABI plugin to check if call frame addresses are valid (PR #161398)

2025-10-18 Thread Jason Molenda via lldb-commits
@@ -1870,10 +1880,8 @@ bool RegisterContextUnwind::TryFallbackUnwindPlan() { if (ReadRegisterValueFromRegisterLocation(regloc, reg_info, reg_value)) { new_caller_pc_value = reg_value.GetAsUInt64(); - i

[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: 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/functionalities/breakpoint/callback_deletes_breakpoints/T

[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
sedymrak wrote: I came to the same conclusion a little later than you. The test I was experimented with: ``` --- a/lldb/unittests/Utility/RegisterValueTest.cpp +++ b/lldb/unittests/Utility/RegisterValueTest.cpp @@ -7,6 +7,8 @@ //===---

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

2025-10-18 Thread Jonas Devlieghere via lldb-commits
@@ -164,6 +173,14 @@ class BreakpointLocationCollection { collection m_break_loc_collection; mutable std::mutex m_collection_mutex; + /// These are used if we're preserving breakpoints in this list: + const bool m_preserving_bkpts = false; + struct RefCountedBPSP { +

[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] support attaching by name for platform android (PR #160931)

2025-10-18 Thread Roy Shi via lldb-commits
@@ -477,6 +477,85 @@ std::string PlatformAndroid::GetRunAs() { } return run_as.str(); } +uint32_t +PlatformAndroid::FindProcesses(const ProcessInstanceInfoMatch &match_info, + ProcessInstanceInfoList &proc_infos) { + // Use the parent implemen

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

2025-10-18 Thread Miguel Ojeda via lldb-commits
ojeda wrote: > Looking at Rust's arithmetic, there is just simply _no_ mismatched bit widths > allowed. Things need to be explicitly cast, so there is no ambiguity about > bit width. Going all the way to this requirement feels like the furthest > swing away from usability in C, especially with

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

2025-10-18 Thread Walter Erquinigo via lldb-commits
@@ -47,6 +47,12 @@ def debugger_pid: S<"debugger-pid">, HelpText<"The PID of the lldb-dap instance that sent the launchInTerminal " "request when using --launch-target.">; +def stdio: S<"stdio">, walter-erquinigo wrote: would it be possible to redirect

[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-dap] Send a 'process' event on restart. (PR #163833)

2025-10-18 Thread John Harrison via lldb-commits
https://github.com/ashgti created https://github.com/llvm/llvm-project/pull/163833 When we restart a process, send an updated 'process' event describing the newly launched process. I also updated the `isLocalProcess` value based on if we're on the 'host' platform or not. >From 49e0b3b886f68c

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

2025-10-18 Thread via lldb-commits
Author: Julian Lettner Date: 2025-10-14T13:01:24-07:00 New Revision: ced01f367183520e4b1a21dadfc1c3be044f5be3 URL: https://github.com/llvm/llvm-project/commit/ced01f367183520e4b1a21dadfc1c3be044f5be3 DIFF: https://github.com/llvm/llvm-project/commit/ced01f367183520e4b1a21dadfc1c3be044f5be3.diff

[Lldb-commits] [lldb] [lldb][test] Fix TestEmptyFuncThreadStepOut.py (PR #161788)

2025-10-18 Thread Igor Kudrin via lldb-commits
igorkudrin wrote: > I would have thought finish from the epilogue had the same issue as from the > "body" of the function but you've apparently proven that not to be the case. Perhaps I was not clear enough. As I understand it, the original test was supposed to demonstrate an issue with steppi

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

2025-10-18 Thread Med Ismail Bennani via lldb-commits
medismailben wrote: Hello! Thanks for your interest in this PR. > Being able to modify the frame list from a script would indeed be amazing - > thanks for looking into this! 🙂 > > As it happens, I am currently looking into gdb's "frame filter" API, which > serves a very similar use case - and

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

2025-10-18 Thread Michael Buch via lldb-commits
Michael137 wrote: So IIUC, the issue is that `SBModule::FindFirstType` falls back to `TypeSystemClang::GetBuiltinTypeByName`. Since `__int128` and `unsigned __int128` are the de-facto names for the builtin types, we expect LLDB to find them. But LLDB registers the 128-bit integer builtins as b

[Lldb-commits] [lldb] [lldb][test] Fix TestEmptyFuncThreadStepOut.py (PR #161788)

2025-10-18 Thread Igor Kudrin via lldb-commits
https://github.com/igorkudrin edited https://github.com/llvm/llvm-project/pull/161788 ___ lldb-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

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

2025-10-18 Thread via lldb-commits
https://github.com/jimingham created https://github.com/llvm/llvm-project/pull/163471 StopInfoBreakpoint keeps a BreakpointLocationCollection for all the breakpoint locations at the BreakpointSite that was hit. It is also lives through the time a given thread is stopped, so there are plenty of

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

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/include/lldb/Core/ModuleList.h lldb/inclu

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

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

[Lldb-commits] [lldb] 7ab271c - [lldb][examples] Use Python3 versions of types module in performance.py

2025-10-18 Thread David Spickett via lldb-commits
Author: David Spickett Date: 2025-10-16T09:54:53Z New Revision: 7ab271cbd26c869e354fff9c921b30276a3fa974 URL: https://github.com/llvm/llvm-project/commit/7ab271cbd26c869e354fff9c921b30276a3fa974 DIFF: https://github.com/llvm/llvm-project/commit/7ab271cbd26c869e354fff9c921b30276a3fa974.diff LOG

[Lldb-commits] [lldb] 64ed390 - [lldb] Fix stepping out if the return address is not allowed to stop at (#161982)

2025-10-18 Thread via lldb-commits
Author: Igor Kudrin Date: 2025-10-08T16:30:24-07:00 New Revision: 64ed3903bbb56dd74e120e84442f4bbaae777eb3 URL: https://github.com/llvm/llvm-project/commit/64ed3903bbb56dd74e120e84442f4bbaae777eb3 DIFF: https://github.com/llvm/llvm-project/commit/64ed3903bbb56dd74e120e84442f4bbaae777eb3.diff L

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

2025-10-18 Thread Justin Stitt via lldb-commits
@@ -9744,6 +9744,16 @@ static void DiagnoseNarrowingInInitList(Sema &S, case NK_Constant_Narrowing: { // A constant value was narrowed. + +// Overflow behavior destination types with a 'wrap' kind can elide JustinStitt wrote: Without the OBT check i

[Lldb-commits] [lldb] [LLDB] Add unary plus and minus to DIL (PR #155617)

2025-10-18 Thread Adrian Prantl via lldb-commits
@@ -412,6 +412,13 @@ class TypeSystem : public PluginInterface, GetIntegralTemplateArgument(lldb::opaque_compiler_type_t type, size_t idx, bool expand_pack); + // DIL + + virtual bool IsPromotableIntegerType(lldb::opaque_compiler_type_t type);

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

2025-10-18 Thread Kazu Hirata via lldb-commits
https://github.com/kazutakahirata edited https://github.com/llvm/llvm-project/pull/162544 ___ lldb-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

[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 created https://github.com/llvm/llvm-project/pull/160555 The build script copies lldb-defines.h into the staging area but it gets overwritten by version-header-fix.py. This flow assumes that the lldb-defines.h from the source was writable originally (thus the copy m

[Lldb-commits] [lldb] e559d1f - Reland #158161 with cmake fix (#159842)

2025-10-18 Thread via lldb-commits
Author: barsolo2000 Date: 2025-09-22T10:12:51-05:00 New Revision: e559d1f56b206f3360e08be762b29d1c31a4cf84 URL: https://github.com/llvm/llvm-project/commit/e559d1f56b206f3360e08be762b29d1c31a4cf84 DIFF: https://github.com/llvm/llvm-project/commit/e559d1f56b206f3360e08be762b29d1c31a4cf84.diff L

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

2025-10-18 Thread Jonas Devlieghere via lldb-commits
@@ -121,6 +122,15 @@ class LLDBDAPOptTable : public llvm::opt::GenericOptTable { }; } // anonymous namespace +#define ESCAPE "\x1b" +#define CSI ESCAPE "[" +// Move the cursor to 0,0 +#define ANSI_CURSOR_HOME CSI "H" +// Clear the screen buffer +#define ANSI_ERASE_SCREEN CSI "

[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 updated https://github.com/llvm/llvm-project/pull/160931 >From 617de12c6d9ccfdd89d394c99132c596c9fd07ed Mon Sep 17 00:00:00 2001 From: Chad Smith Date: Fri, 26 Sep 2025 11:01:19 -0700 Subject: [PATCH 1/2] support attaching by name for platform android --- .../Platform/A

[Lldb-commits] [lldb] [lldb][test] Allow '.c' files to be used as shell tests (PR #161520)

2025-10-18 Thread Michael Buch via lldb-commits
Michael137 wrote: libc++ CI failure seems unrelated (not even sure why it ran) https://github.com/llvm/llvm-project/pull/161520 ___ lldb-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

[Lldb-commits] [lldb] [LLDB] Add unary plus and minus to DIL (PR #155617)

2025-10-18 Thread Adrian Prantl via lldb-commits
@@ -412,6 +412,13 @@ class TypeSystem : public PluginInterface, GetIntegralTemplateArgument(lldb::opaque_compiler_type_t type, size_t idx, bool expand_pack); + // DIL + + virtual bool IsPromotableIntegerType(lldb::opaque_compiler_type_t type);

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

2025-10-18 Thread David Spickett via lldb-commits
https://github.com/DavidSpickett 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] 78c5d91 - [lldb][test] Disable TestLldbGdbServer.py on Linux temporarily (#161868)

2025-10-18 Thread via lldb-commits
Author: David Spickett Date: 2025-10-03T16:54:18+01:00 New Revision: 78c5d9100f718fe380eeea6ca6236f3505a6c3a6 URL: https://github.com/llvm/llvm-project/commit/78c5d9100f718fe380eeea6ca6236f3505a6c3a6 DIFF: https://github.com/llvm/llvm-project/commit/78c5d9100f718fe380eeea6ca6236f3505a6c3a6.diff

[Lldb-commits] [lldb] [lldb][Lanugage][NFC] Adapt Language::ForEach to IterationAction (PR #161830)

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

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

2025-10-18 Thread Michael Buch via lldb-commits
Matej =?utf-8?q?Košík?= , Matej =?utf-8?q?Košík?= Message-ID: In-Reply-To: @@ -851,6 +851,8 @@ lldb::BasicType TypeSystemClang::GetBasicTypeEnumeration(llvm::StringRef name) { // "int128" {"__int128_t", eBasicTypeInt128}, {"__uint128_t", eBasicTypeUnsigned

[Lldb-commits] [lldb] [lldb] Enforce that only the LLDB API unit tests can link liblldb (PR #162384)

2025-10-18 Thread Alex Langford via lldb-commits
https://github.com/bulbazord approved this pull request. Great idea. I wish CMake had a mechanism to enforce these kinds of linking constraints. https://github.com/llvm/llvm-project/pull/162384 ___ lldb-commits mailing list [email protected]

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

2025-10-18 Thread via lldb-commits
Author: Michael Buch Date: 2025-10-01T15:58:09Z New Revision: 23e081524fd9f64fb3430822e879b6dc36a1d3f1 URL: https://github.com/llvm/llvm-project/commit/23e081524fd9f64fb3430822e879b6dc36a1d3f1 DIFF: https://github.com/llvm/llvm-project/commit/23e081524fd9f64fb3430822e879b6dc36a1d3f1.diff LOG:

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

2025-10-18 Thread David Peixotto via lldb-commits
https://github.com/dmpots approved this pull request. LGTM. Thanks for the changes and adding the test! > I do not know the proper way to test this change and am open to > recommendations on how to add a test. We can update the commit message now that we have tests! Question for my understand

[Lldb-commits] [lldb] [lldb][IRExecutionUnit] Return error on failure to resolve function address (PR #161363)

2025-10-18 Thread via lldb-commits
llvmbot wrote: @llvm/pr-subscribers-lldb Author: Michael Buch (Michael137) Changes Starting with https://github.com/llvm/llvm-project/pull/148877 we started encoding the module ID of the function DIE we are currently parsing into its `AsmLabel` in the AST. When the JIT asks LLDB to resol

[Lldb-commits] [lldb] e98f34e - [LLDB][NativePDB] Create functions with mangled name (#149701)

2025-10-18 Thread via lldb-commits
Author: nerix Date: 2025-09-24T16:12:54+02:00 New Revision: e98f34eb08b2bf7aed787e7f8a7cea9111f044c8 URL: https://github.com/llvm/llvm-project/commit/e98f34eb08b2bf7aed787e7f8a7cea9111f044c8 DIFF: https://github.com/llvm/llvm-project/commit/e98f34eb08b2bf7aed787e7f8a7cea9111f044c8.diff LOG: [L

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

2025-10-18 Thread Ebuka Ezike via lldb-commits
https://github.com/da-viper created https://github.com/llvm/llvm-project/pull/161385 #160333 reimplementation but at runtime instead because of broken CI. >From bbc894aab1a2c58611b84025362422f5aa0821ac Mon Sep 17 00:00:00 2001 From: Ebuka Ezike Date: Tue, 30 Sep 2025 14:22:55 +0100 Subject: [

[Lldb-commits] [lldb] 8e62ace - [lldb] Ignore trailing spaces on quit confirmation (#162263)

2025-10-18 Thread via lldb-commits
Author: Ebuka Ezike Date: 2025-10-08T18:48:20+01:00 New Revision: 8e62acec9e0228118e2a5a982ca2eaa7b213a049 URL: https://github.com/llvm/llvm-project/commit/8e62acec9e0228118e2a5a982ca2eaa7b213a049 DIFF: https://github.com/llvm/llvm-project/commit/8e62acec9e0228118e2a5a982ca2eaa7b213a049.diff L

[Lldb-commits] [lldb] Fix comment typo in `StructuredDataPlugin.cpp` (PR #162637)

2025-10-18 Thread Charles Zablit via lldb-commits
https://github.com/charles-zablit auto_merge_enabled https://github.com/llvm/llvm-project/pull/162637 ___ lldb-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

[Lldb-commits] [lldb] 3d81008 - [lldb][Lanugage][NFC] Adapt Language::ForEach to IterationAction (#161830)

2025-10-18 Thread via lldb-commits
Author: Michael Buch Date: 2025-10-03T15:47:21+01:00 New Revision: 3d810086d1e16e2de57634d7eb5ecf25a5227e4c URL: https://github.com/llvm/llvm-project/commit/3d810086d1e16e2de57634d7eb5ecf25a5227e4c DIFF: https://github.com/llvm/llvm-project/commit/3d810086d1e16e2de57634d7eb5ecf25a5227e4c.diff

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

2025-10-18 Thread via lldb-commits
llvmbot wrote: @llvm/pr-subscribers-lldb Author: Jacob Lalonde (Jlalond) Changes This patch adds a load core time, right now we don't have much insight into the performance of load core, especially for large coredumps. To start collecting information on this I've added some minor instrum

[Lldb-commits] [lldb] [LLDB] Handle i686 mingw32 mangling prefix (PR #160930)

2025-10-18 Thread Michael Buch via lldb-commits
Michael137 wrote: > That's the case, and also why just checking for __Z isn't enough. For one, > this doesn't play nice with Rust, which also has two underscores on i686. And > secondly, C names are displayed incorrectly right now. For example, you'd see > _main instead of main and a function

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

2025-10-18 Thread via lldb-commits
@@ -1,10 +1,15 @@ -add_lldb_unittest(LLDBBreakpointTests +add_lldb_unittest(LLDBBreakpointTests BreakpointIDTest.cpp + BreakpointClearConditionTest.cpp WatchpointAlgorithmsTests.cpp LINK_COMPONENTS Support LINK_LIBS +liblldb jimingham

[Lldb-commits] [lldb] [LLDB][PDB] Fix plugin warning message style (PR #160398)

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

[Lldb-commits] [lldb] [lldb][NFCI] Remove the non-const reference Mangled::GetMangledName accessor (PR #161495)

2025-10-18 Thread Michael Buch via lldb-commits
https://github.com/Michael137 created https://github.com/llvm/llvm-project/pull/161495 We've been seen (very sporadic) lifetime issues around this area. We noticed that `GetMangledName` has two accessors, one of which returns a non-const reference. I audited all the callsites and no users of t

[Lldb-commits] [lldb] 097f1e7 - [lldb] Do not stop the process on SIGWINCH by default. (#163182)

2025-10-18 Thread via lldb-commits
Author: Ebuka Ezike Date: 2025-10-15T17:19:51+01:00 New Revision: 097f1e7625966673b881df63a241f755317b0bb9 URL: https://github.com/llvm/llvm-project/commit/097f1e7625966673b881df63a241f755317b0bb9 DIFF: https://github.com/llvm/llvm-project/commit/097f1e7625966673b881df63a241f755317b0bb9.diff L

[Lldb-commits] [lldb] [LLDB, FreeBSD, x86] Fix empty register set when trying to get size of register (PR #162890)

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

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

2025-10-18 Thread David Spickett via lldb-commits
DavidSpickett wrote: If there's a stack based type to hand use it, but otherwise yeah we were always gonna hit this limit eventually. Also double check that what the comment says is still true. Maybe bitvector got better in the meantime? https://github.com/llvm/llvm-project/pull/161810 __

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

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

[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
https://github.com/kuhar edited https://github.com/llvm/llvm-project/pull/163405 ___ 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 Felipe de Azevedo Piovezan via lldb-commits
https://github.com/felipepiovezan created https://github.com/llvm/llvm-project/pull/162670 This commit implements, in debugserver, the packet as discussed in the RFC [1]. [1]: https://discourse.llvm.org/t/rfc-a-new-vectorized-memory-read-packet/88441 >From 86c55d2a5ac398a86a29d722a4d4e44ba783d

[Lldb-commits] [lldb] [lldb-dap] Remove timings from TestDAP_attach (PR #163452)

2025-10-18 Thread Walter Erquinigo via lldb-commits
https://github.com/walter-erquinigo approved this pull request. I love it when I see @skips getting removed https://github.com/llvm/llvm-project/pull/163452 ___ lldb-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailma

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

2025-10-18 Thread Ilia Kuklin via lldb-commits
kuilpd wrote: > Swift does have builtin types, they just aren't exposed to the user directly. @jimingham Ah, I see. Well, then we can still check for builtin types first, and when it comes to implementing `GetBuiltinTypeByName` in `TypeSystemSwift` for DIL, you can decide whether you want to

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

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

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

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

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

2025-10-18 Thread David Spickett via lldb-commits
DavidSpickett wrote: Also please add to the PR description a single line like: ``` If you need to re-enable these tests do ``` In case the reader is a person who cared about system library compatibility. You kinda say what to do already but not in a Friday afternoon in a rush compatible wa

[Lldb-commits] [lldb] [llvm] [lldb] Do not stop the process on SIGWINCH by default. (PR #163182)

2025-10-18 Thread James Y Knight via lldb-commits
@@ -174,6 +174,9 @@ Changes to LLDB * LLDB can now set breakpoints, show backtraces, and display variables when debugging Wasm with supported runtimes (WAMR and V8). +* LLDB no longer stops processes by default when receiving SIGWINCH signals + (window resize events) on Li

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

2025-10-18 Thread Timur Golubovich via lldb-commits
tgs-sc wrote: @Michael137, can you please then merge this patch? Because I don't have corresponding rights. https://github.com/llvm/llvm-project/pull/157674 ___ lldb-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailm

  1   2   3   4   5   6   7   >