[Lldb-commits] [lldb] [LLDB][Save Core Options] Custom ranges should follow the same safety checks as everyone else (PR #125323)

2025-01-31 Thread via lldb-commits
llvmbot wrote: @llvm/pr-subscribers-lldb Author: Jacob Lalonde (Jlalond) Changes I encountered a `qMemoryRegionInfo not supported` error when capturing a Minidump. This was surprising, and I started looking around I found @jasonmolenda's fix in #115963 and then realized I was not validate

[Lldb-commits] [lldb] [LLDB][Save Core Options] Custom ranges should follow the same safety checks as everyone else (PR #125323)

2025-01-31 Thread Jacob Lalonde via lldb-commits
https://github.com/Jlalond created https://github.com/llvm/llvm-project/pull/125323 I encountered a `qMemoryRegionInfo not supported` error when capturing a Minidump. This was surprising, and I started looking around I found @jasonmolenda's fix in #115963 and then realized I was not validated

[Lldb-commits] [lldb] [lldb] Implement bidirectional access for backing<->backed thread relationship (PR #125300)

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

[Lldb-commits] [lldb] [lldb] Implement bidirectional access for backing<->backed thread relationship (PR #125300)

2025-01-31 Thread Felipe de Azevedo Piovezan via lldb-commits
https://github.com/felipepiovezan updated https://github.com/llvm/llvm-project/pull/125300 >From 0c9d9ed5b1aa78f397e95c894def54ee627bea62 Mon Sep 17 00:00:00 2001 From: Felipe de Azevedo Piovezan Date: Fri, 31 Jan 2025 12:07:45 -0800 Subject: [PATCH 1/3] [lldb] Implement bidirectional access fo

[Lldb-commits] [lldb] [lldb] Implement bidirectional access for backing<->backed thread relationship (PR #125300)

2025-01-31 Thread Felipe de Azevedo Piovezan via lldb-commits
https://github.com/felipepiovezan updated https://github.com/llvm/llvm-project/pull/125300 >From 0c9d9ed5b1aa78f397e95c894def54ee627bea62 Mon Sep 17 00:00:00 2001 From: Felipe de Azevedo Piovezan Date: Fri, 31 Jan 2025 12:07:45 -0800 Subject: [PATCH 1/2] [lldb] Implement bidirectional access fo

[Lldb-commits] [lldb] [lldb] Implement bidirectional access for backing<->backed thread relationship (PR #125300)

2025-01-31 Thread Felipe de Azevedo Piovezan via lldb-commits
@@ -470,6 +470,18 @@ class Thread : public std::enable_shared_from_this, virtual void ClearStackFrames(); + /// Derived classes implementing SetBackingThread should use this to provide + /// bidirectional access to the Backing-Backed relationship. + void SetBackedThread(

[Lldb-commits] [lldb] [lldb] Show value for libcxx and libstdcxx summary and remove pointer value in libcxx container summary (PR #125294)

2025-01-31 Thread via lldb-commits
https://github.com/jimingham approved this pull request. LGTM, better to be consistent, and the pointer value is useful. https://github.com/llvm/llvm-project/pull/125294 ___ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/c

[Lldb-commits] [lldb] [lldb] Store the command in the CommandReturnObject (PR #125132)

2025-01-31 Thread via lldb-commits
jimingham wrote: This looks good. I wonder if we ought to do something a little less ad hoc about the cases where our command return objects are from HandleCommands, so they won't necessarily have the result of a single command. In the case where a UI is parsing these, it might very well nee

[Lldb-commits] [lldb] [lldb] Implement bidirectional access for backing<->backed thread relationship (PR #125300)

2025-01-31 Thread via lldb-commits
@@ -470,6 +470,18 @@ class Thread : public std::enable_shared_from_this, virtual void ClearStackFrames(); + /// Derived classes implementing SetBackingThread should use this to provide + /// bidirectional access to the Backing-Backed relationship. + void SetBackedThread(

[Lldb-commits] [lldb] LLDB: correct event when removing all watchpoints (PR #125312)

2025-01-31 Thread Jonas Devlieghere via lldb-commits
JDevlieghere wrote: Can you write or modify a test? I glanced over `TestWatchpointEvents.py` and it looks like it's listening to the wrong bit (even thought the test is passing with your change). https://github.com/llvm/llvm-project/pull/125312 ___

[Lldb-commits] [lldb] [lldb] Store the command in the CommandReturnObject (PR #125132)

2025-01-31 Thread via lldb-commits
llvmbot wrote: @llvm/pr-subscribers-lldb Author: Jonas Devlieghere (JDevlieghere) Changes As suggested in #125006. Depending on which PR lands first, I'll update `TestCommandInterepterPrintCallback.py` to check that the `CommandReturnObject` passed to the callback has the correct command

[Lldb-commits] [lldb] [lldb] Store the command in the CommandReturnObject (PR #125132)

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

[Lldb-commits] [lldb] [lldb] Store the command in the CommandReturnObject (PR #125132)

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

[Lldb-commits] [lldb] [lldb] Store the command in the CommandReturnObject (PR #125132)

2025-01-31 Thread Jonas Devlieghere via lldb-commits
https://github.com/JDevlieghere updated https://github.com/llvm/llvm-project/pull/125132 >From aa41718c6f8220d5369453e91e372e4f52c37c6a Mon Sep 17 00:00:00 2001 From: Jonas Devlieghere Date: Thu, 30 Jan 2025 15:00:14 -0800 Subject: [PATCH] [lldb] Store the command in the CommandReturnObject --

[Lldb-commits] [lldb] [lldb] Improve isolation between Process plugins and OS plugins (PR #125302)

2025-01-31 Thread via lldb-commits
https://github.com/jimingham approved this pull request. That seems obviously right, it doesn't make sense to require every process plugin to be aware of backing threads, but it does seem quite reasonable for generic code to be aware of them. https://github.com/llvm/llvm-project/pull/125302 __

[Lldb-commits] [lldb] LLDB: correct event when removing all watchpoints (PR #125312)

2025-01-31 Thread Ben Jackson via lldb-commits
https://github.com/puremourning updated https://github.com/llvm/llvm-project/pull/125312 >From 0bf7cf47b3373f3bd23802fcd41f6b831fff6adf Mon Sep 17 00:00:00 2001 From: Ben Jackson Date: Fri, 31 Jan 2025 22:38:04 + Subject: [PATCH] LLDB: correct event when removing all watchpoints Previously

[Lldb-commits] [lldb] LLDB: correct event when removing all watchpoints (PR #125312)

2025-01-31 Thread Ben Jackson via lldb-commits
https://github.com/puremourning edited https://github.com/llvm/llvm-project/pull/125312 ___ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

[Lldb-commits] [lldb] LLDB: correct event when removing all watchpoints (PR #125312)

2025-01-31 Thread via lldb-commits
llvmbot wrote: @llvm/pr-subscribers-lldb Author: Ben Jackson (puremourning) Changes Previously we incorrectly emitted a "breakpoint changed" event when removing all watchpoints (e.g. via SBTarget::DeleteAllWatchpoints()). Correct it to emit the "watchpoint changed" event, as that's what

[Lldb-commits] [lldb] LLDB: WatchAddress ignores modify option (PR #124847)

2025-01-31 Thread Ben Jackson via lldb-commits
puremourning wrote: https://github.com/llvm/llvm-project/pull/125312 https://github.com/llvm/llvm-project/pull/124847 ___ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

[Lldb-commits] [lldb] LLDB: correct event when removing all watchpoints (PR #125312)

2025-01-31 Thread Ben Jackson via lldb-commits
https://github.com/puremourning created https://github.com/llvm/llvm-project/pull/125312 Previously we incorrectly emitted a "breakpoint changed" event when removing all watchpoints (e.g. via SBTarget::DeleteAllWatchpoints()). Correct it to emit the "watchpoint changed" event, as that's what "

[Lldb-commits] [clang] [lldb] [lldb] Analyze enum promotion type during parsing (PR #115005)

2025-01-31 Thread Ilia Kuklin via lldb-commits
@@ -2367,11 +2369,36 @@ size_t DWARFASTParserClang::ParseChildEnumerators( } if (name && name[0] && got_value) { - m_ast.AddEnumerationValueToEnumerationType( + auto ECD = m_ast.AddEnumerationValueToEnumerationType( kuilpd wrote: Alright, wi

[Lldb-commits] [lldb] LLDB: WatchAddress ignores modify option (PR #124847)

2025-01-31 Thread Ben Jackson via lldb-commits
puremourning wrote: Looking again, of course you're right and the behaviour of RemoveAll and Remove is inconsistent today, so I don't see a problem with fixing it. https://github.com/llvm/llvm-project/pull/124847 ___ lldb-commits mailing list lldb-com

[Lldb-commits] [clang] [lldb] [lldb] Analyze enum promotion type during parsing (PR #115005)

2025-01-31 Thread Michael Buch via lldb-commits
@@ -2367,11 +2369,36 @@ size_t DWARFASTParserClang::ParseChildEnumerators( } if (name && name[0] && got_value) { - m_ast.AddEnumerationValueToEnumerationType( + auto ECD = m_ast.AddEnumerationValueToEnumerationType( Michael137 wrote: Feel fr

[Lldb-commits] [clang] [lldb] [lldb] Analyze enum promotion type during parsing (PR #115005)

2025-01-31 Thread Michael Buch via lldb-commits
@@ -2367,11 +2369,36 @@ size_t DWARFASTParserClang::ParseChildEnumerators( } if (name && name[0] && got_value) { - m_ast.AddEnumerationValueToEnumerationType( + auto ECD = m_ast.AddEnumerationValueToEnumerationType( Michael137 wrote: Ah true

[Lldb-commits] [clang] [lldb] [lldb] Analyze enum promotion type during parsing (PR #115005)

2025-01-31 Thread Ilia Kuklin via lldb-commits
@@ -2367,11 +2369,36 @@ size_t DWARFASTParserClang::ParseChildEnumerators( } if (name && name[0] && got_value) { - m_ast.AddEnumerationValueToEnumerationType( + auto ECD = m_ast.AddEnumerationValueToEnumerationType( kuilpd wrote: It's used i

[Lldb-commits] [clang] [lldb] [lldb] Analyze enum promotion type during parsing (PR #115005)

2025-01-31 Thread Michael Buch via lldb-commits
@@ -2367,11 +2369,36 @@ size_t DWARFASTParserClang::ParseChildEnumerators( } if (name && name[0] && got_value) { - m_ast.AddEnumerationValueToEnumerationType( + auto ECD = m_ast.AddEnumerationValueToEnumerationType( Michael137 wrote: That's

[Lldb-commits] [lldb] [lldb] Show value for libcxx and libstdcxx summary and remove pointer value in libcxx container summary (PR #125294)

2025-01-31 Thread Zequan Wu via lldb-commits
https://github.com/ZequanWu updated https://github.com/llvm/llvm-project/pull/125294 >From bbecf2f990c1fdf8ed993c3bba4c68212ebb299c Mon Sep 17 00:00:00 2001 From: Zequan Wu Date: Fri, 31 Jan 2025 13:05:14 -0800 Subject: [PATCH 1/3] [lldb] Show value for libcxx and libstdcxx summary and remove

[Lldb-commits] [clang] [lldb] [lldb] Analyze enum promotion type during parsing (PR #115005)

2025-01-31 Thread Ilia Kuklin via lldb-commits
@@ -2367,11 +2369,36 @@ size_t DWARFASTParserClang::ParseChildEnumerators( } if (name && name[0] && got_value) { - m_ast.AddEnumerationValueToEnumerationType( + auto ECD = m_ast.AddEnumerationValueToEnumerationType( kuilpd wrote: Yes, but I

[Lldb-commits] [lldb] LLDB: WatchAddress ignores modify option (PR #124847)

2025-01-31 Thread Ben Jackson via lldb-commits
puremourning wrote: > Seeing as you are working on watchpoints here, I found that `void > WatchpointList::RemoveAll(bool notify)` is sending the wrong event of > `Target::eBroadcastBitBreakpointChanged` instead of sending > `Target::eBroadcastBitWatchpointChanged`. Might be a good fix to get i

[Lldb-commits] [lldb] [lldb] Show value for libcxx and libstdcxx summary and remove pointer value in libcxx container summary (PR #125294)

2025-01-31 Thread Zequan Wu via lldb-commits
https://github.com/ZequanWu updated https://github.com/llvm/llvm-project/pull/125294 >From bbecf2f990c1fdf8ed993c3bba4c68212ebb299c Mon Sep 17 00:00:00 2001 From: Zequan Wu Date: Fri, 31 Jan 2025 13:05:14 -0800 Subject: [PATCH 1/2] [lldb] Show value for libcxx and libstdcxx summary and remove

[Lldb-commits] [lldb] LLDB: WatchAddress ignores modify option (PR #124847)

2025-01-31 Thread Greg Clayton via lldb-commits
clayborg wrote: Seeing as you are working on watchpoints here, I found that `void WatchpointList::RemoveAll(bool notify)` is sending the wrong event of `Target::eBroadcastBitBreakpointChanged` instead of sending `Target::eBroadcastBitWatchpointChanged`. Might be a good fix to get in to ensure

[Lldb-commits] [lldb] [lldb] Implement bidirectional access for backing<->backed thread relationship (PR #125300)

2025-01-31 Thread Felipe de Azevedo Piovezan via lldb-commits
@@ -72,12 +72,17 @@ class ThreadMemory : public lldb_private::Thread { void ClearStackFrames() override; - void ClearBackingThread() override { m_backing_thread_sp.reset(); } + void ClearBackingThread() override { +if (m_backing_thread_sp) + m_backing_thread_sp->

[Lldb-commits] [lldb] [lldb] Improve isolation between Process plugins and OS plugins (PR #125302)

2025-01-31 Thread via lldb-commits
llvmbot wrote: @llvm/pr-subscribers-lldb Author: Felipe de Azevedo Piovezan (felipepiovezan) Changes Generally speaking, process plugins (e.g. ProcessGDBRemote) should not be aware of OS plugin threads. However, ProcessGDBRemote attempts to check for the existence of OS threads when calc

[Lldb-commits] [lldb] [lldb] Implement bidirectional access for backing<->backed thread relationship (PR #125300)

2025-01-31 Thread via lldb-commits
llvmbot wrote: @llvm/pr-subscribers-lldb Author: Felipe de Azevedo Piovezan (felipepiovezan) Changes This enables finding the backed thread from the backing thread without going through the thread list, and it will be useful for subsequent commits. --- Full diff: https://github.com/llvm/

[Lldb-commits] [lldb] [lldb] Improve isolation between Process plugins and OS plugins (PR #125302)

2025-01-31 Thread Felipe de Azevedo Piovezan via lldb-commits
felipepiovezan wrote: Depends on https://github.com/llvm/llvm-project/pull/125300 https://github.com/llvm/llvm-project/pull/125302 ___ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

[Lldb-commits] [lldb] [lldb] Improve isolation between Process plugins and OS plugins (PR #125302)

2025-01-31 Thread Felipe de Azevedo Piovezan via lldb-commits
https://github.com/felipepiovezan created https://github.com/llvm/llvm-project/pull/125302 Generally speaking, process plugins (e.g. ProcessGDBRemote) should not be aware of OS plugin threads. However, ProcessGDBRemote attempts to check for the existence of OS threads when calculating stop inf

[Lldb-commits] [lldb] [lldb] Implement bidirectional access for backing<->backed thread relationship (PR #125300)

2025-01-31 Thread Felipe de Azevedo Piovezan via lldb-commits
https://github.com/felipepiovezan created https://github.com/llvm/llvm-project/pull/125300 This enables finding the backed thread from the backing thread without going through the thread list, and it will be useful for subsequent commits. >From 0c9d9ed5b1aa78f397e95c894def54ee627bea62 Mon Sep

[Lldb-commits] [lldb] LLDB: WatchAddress ignores modify option (PR #124847)

2025-01-31 Thread Ben Jackson via lldb-commits
https://github.com/puremourning updated https://github.com/llvm/llvm-project/pull/124847 >From 6b3ba3f6dcf11d8b18ff72bc736b24ac75231626 Mon Sep 17 00:00:00 2001 From: Ben Jackson Date: Tue, 28 Jan 2025 21:47:24 + Subject: [PATCH] LLDB: WatchAddress ignores modify option The WatchAddress AP

[Lldb-commits] [lldb] LLDB: WatchAddress ignores modify option (PR #124847)

2025-01-31 Thread Ben Jackson via lldb-commits
puremourning wrote: I think the issue is that... we just don't support read-only watchpoints on intel because the [hardware doesn't support it](https://en.wikipedia.org/wiki/X86_debug_register#cite_note-brkpt_type-19). I guess I'll mark this test as "skip on x86" https://github.com/llvm/llvm-

[Lldb-commits] [lldb] [lldb] Use llvm::Error instead of CommandReturnObject for error reporting (PR #125125)

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

[Lldb-commits] [lldb] 6deee0d - [lldb] Use llvm::Error instead of CommandReturnObject for error reporting (#125125)

2025-01-31 Thread via lldb-commits
Author: Jonas Devlieghere Date: 2025-01-31T13:23:26-08:00 New Revision: 6deee0d5b36c8b4b83209759df8d4933e4922bc8 URL: https://github.com/llvm/llvm-project/commit/6deee0d5b36c8b4b83209759df8d4933e4922bc8 DIFF: https://github.com/llvm/llvm-project/commit/6deee0d5b36c8b4b83209759df8d4933e4922bc8.d

[Lldb-commits] [lldb] [lldb] Show value for libcxx and libstdcxx summary and remove pointer value in libcxx container summary (PR #125294)

2025-01-31 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 0d46657cb6bf04430ff8222e1974e49441767d47...bbecf2f990c1fdf8ed993c3bba4c68212ebb299c lldb

[Lldb-commits] [lldb] 87b7f63 - Revert "Reland "[lldb] Implement basic support for reverse-continue" (#125242)"

2025-01-31 Thread Adrian Prantl via lldb-commits
Author: Adrian Prantl Date: 2025-01-31T13:11:20-08:00 New Revision: 87b7f63a117c340a6d9ca47959335fd7ef6c7ad2 URL: https://github.com/llvm/llvm-project/commit/87b7f63a117c340a6d9ca47959335fd7ef6c7ad2 DIFF: https://github.com/llvm/llvm-project/commit/87b7f63a117c340a6d9ca47959335fd7ef6c7ad2.diff

[Lldb-commits] [lldb] [lldb] Show value for libcxx and libstdcxx summary and remove pointer value in libcxx container summary (PR #125294)

2025-01-31 Thread Zequan Wu via lldb-commits
@@ -172,7 +172,4 @@ def test_ref_and_ptr(self): # The pointer should just show the right number of elements: -ptrAddr = self.findVariable("ptr").GetValue() -self.expect_expr( -"ptr", result_type="std::span *", result_summary=f"{ptrAddr} si

[Lldb-commits] [lldb] [lldb] Make ValueObjectDynamicValue::UpdateValue() point to a host b… (PR #125143)

2025-01-31 Thread Augusto Noronha via lldb-commits
augusto2112 wrote: Ok, fair point. I'll come up with a more robust solution. https://github.com/llvm/llvm-project/pull/125143 ___ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

[Lldb-commits] [lldb] [lldb] Make ValueObjectDynamicValue::UpdateValue() point to a host b… (PR #125143)

2025-01-31 Thread via lldb-commits
jimingham wrote: This is a very common crash point. I suspect that in most of the cases it's because we flub whether something is a load or a host address, but I still don't want to add other mistakes we could make here. https://github.com/llvm/llvm-project/pull/125143 __

[Lldb-commits] [lldb] [lldb] Show value for libcxx and libstdcxx summary and remove pointer value in libcxx container summary (PR #125294)

2025-01-31 Thread via lldb-commits
llvmbot wrote: @llvm/pr-subscribers-lldb Author: Zequan Wu (ZequanWu) Changes This has two changes: 1. Set show value for libcxx and libstdcxx summary provider. This will print the pointer value for both pointer type and reference type. 2. Remove pointer value printing in libcxx container

[Lldb-commits] [lldb] [lldb] Make ValueObjectDynamicValue::UpdateValue() point to a host b… (PR #125143)

2025-01-31 Thread via lldb-commits
jimingham wrote: I think it's worth making it as hard as possible to get the length you're supposed to read from that buffer right. https://github.com/llvm/llvm-project/pull/125143 ___ lldb-commits mailing list lldb-commits@lists.llvm.org https://list

[Lldb-commits] [lldb] Reland "[lldb] Implement basic support for reverse-continue" (#123906)" (PR #123945)

2025-01-31 Thread Adrian Prantl via lldb-commits
adrian-prantl wrote: I'm going to revert this for now, let me know if you need help understanding the failure cause! https://github.com/llvm/llvm-project/pull/123945 ___ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-

[Lldb-commits] [lldb] [lldb] Show value for libcxx and libstdcxx summary and remove pointer value in libcxx container summary (PR #125294)

2025-01-31 Thread Zequan Wu via lldb-commits
https://github.com/ZequanWu created https://github.com/llvm/llvm-project/pull/125294 This has two changes: 1. Set show value for libcxx and libstdcxx summary provider. This will print the pointer value for both pointer type and reference type. 2. Remove pointer value printing in libcxx containe

[Lldb-commits] [lldb] Reland "[lldb] Implement basic support for reverse-continue" (#123906)" (PR #123945)

2025-01-31 Thread Adrian Prantl via lldb-commits
adrian-prantl wrote: This is breaking macOS bots: https://green.lab.llvm.org/job/llvm.org/view/LLDB/job/as-lldb-cmake/19569/ https://github.com/llvm/llvm-project/pull/123945 ___ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.

[Lldb-commits] [lldb] [llvm] [lldb][Windows] WoA HW Watchpoint support in LLDB (PR #108072)

2025-01-31 Thread Vladislav Dzhidzhoev via lldb-commits
dzhidzhoev wrote: @omjavaid Apparently, these changes break lldb-remote-linux-win buildbot with the following error: ``` FAILED: tools/lldb/source/Plugins/Process/Windows/Common/CMakeFiles/lldbPluginProcessWindowsCommon.dir/NativeRegisterContextWindows_WoW64.cpp.obj ccache C:\PROGRA~1\MICR

[Lldb-commits] [lldb] [lldb][test] Link certain libc++ tests with the whole library (PR #118986)

2025-01-31 Thread Vladislav Dzhidzhoev via lldb-commits
https://github.com/dzhidzhoev closed https://github.com/llvm/llvm-project/pull/118986 ___ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

[Lldb-commits] [lldb] [lldb][Docs] Expand remote testing instructions (PR #122694)

2025-01-31 Thread Vladislav Dzhidzhoev via lldb-commits
https://github.com/dzhidzhoev approved this pull request. Thank you! https://github.com/llvm/llvm-project/pull/122694 ___ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

[Lldb-commits] [lldb] [lldb] Use llvm::Error instead of CommandReturnObject for error reporting (PR #125125)

2025-01-31 Thread Jonas Devlieghere via lldb-commits
https://github.com/JDevlieghere updated https://github.com/llvm/llvm-project/pull/125125 >From 24ddc550e3ee61b863cbaea05ff49981bc20f7ad Mon Sep 17 00:00:00 2001 From: Jonas Devlieghere Date: Thu, 30 Jan 2025 14:25:16 -0800 Subject: [PATCH 1/5] [lldb] Use llvm::Error instead of CommandReturnObje

[Lldb-commits] [lldb] [lldb] Make ValueObjectDynamicValue::UpdateValue() point to a host b… (PR #125143)

2025-01-31 Thread Augusto Noronha via lldb-commits
augusto2112 wrote: > Maybe I'm missing something. In the host case, m_address is set to invalid, > but m_value has the address in it and is a host address, so then we get to: > > // m_address could be invalid but we could still have a local buffer // > containing the dynamic value. if ((m_addr

[Lldb-commits] [clang] [lldb] [lldb] Analyze enum promotion type during parsing (PR #115005)

2025-01-31 Thread Michael Buch via lldb-commits
@@ -2367,11 +2369,36 @@ size_t DWARFASTParserClang::ParseChildEnumerators( } if (name && name[0] && got_value) { - m_ast.AddEnumerationValueToEnumerationType( + auto ECD = m_ast.AddEnumerationValueToEnumerationType( Michael137 wrote: Unless

[Lldb-commits] [clang] [lldb] [lldb] Analyze enum promotion type during parsing (PR #115005)

2025-01-31 Thread Michael Buch via lldb-commits
@@ -2367,11 +2369,36 @@ size_t DWARFASTParserClang::ParseChildEnumerators( } if (name && name[0] && got_value) { - m_ast.AddEnumerationValueToEnumerationType( + auto ECD = m_ast.AddEnumerationValueToEnumerationType( Michael137 wrote: Apologi

[Lldb-commits] [clang] [lldb] [lldb] Analyze enum promotion type during parsing (PR #115005)

2025-01-31 Thread Ilia Kuklin via lldb-commits
@@ -2367,11 +2369,36 @@ size_t DWARFASTParserClang::ParseChildEnumerators( } if (name && name[0] && got_value) { - m_ast.AddEnumerationValueToEnumerationType( + auto ECD = m_ast.AddEnumerationValueToEnumerationType( kuilpd wrote: > > Iterati

[Lldb-commits] [lldb] [lldb] Make ValueObjectDynamicValue::UpdateValue() point to a host b… (PR #125143)

2025-01-31 Thread via lldb-commits
jimingham wrote: Maybe I'm missing something. In the host case, m_address is set to invalid, but m_value has the address in it and is a host address, so then we get to: // m_address could be invalid but we could still have a local buffer // containing the dynamic value. if ((m_address.

[Lldb-commits] [lldb] [lldb] Use llvm::Error instead of CommandReturnObject for error reporting (PR #125125)

2025-01-31 Thread Jonas Devlieghere via lldb-commits
https://github.com/JDevlieghere updated https://github.com/llvm/llvm-project/pull/125125 >From 24ddc550e3ee61b863cbaea05ff49981bc20f7ad Mon Sep 17 00:00:00 2001 From: Jonas Devlieghere Date: Thu, 30 Jan 2025 14:25:16 -0800 Subject: [PATCH 1/4] [lldb] Use llvm::Error instead of CommandReturnObje

[Lldb-commits] [lldb] [lldb] Use validation combination of options in TestAbbreviations (PR #125270)

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

[Lldb-commits] [lldb] 2a2d6e6 - [lldb-dap] Bump the version to 0.2.9

2025-01-31 Thread Jonas Devlieghere via lldb-commits
Author: Jonas Devlieghere Date: 2025-01-31T11:57:20-08:00 New Revision: 2a2d6e66ce3a87f4f5168df717782d777063f7b8 URL: https://github.com/llvm/llvm-project/commit/2a2d6e66ce3a87f4f5168df717782d777063f7b8 DIFF: https://github.com/llvm/llvm-project/commit/2a2d6e66ce3a87f4f5168df717782d777063f7b8.d

[Lldb-commits] [lldb] dbabad0 - [lldb] Use validation combination of options in TestAbbreviations (#125270)

2025-01-31 Thread via lldb-commits
Author: Jonas Devlieghere Date: 2025-01-31T11:57:49-08:00 New Revision: dbabad0fc04e7106a07dbeeb8ff23dc32ce6b2c6 URL: https://github.com/llvm/llvm-project/commit/dbabad0fc04e7106a07dbeeb8ff23dc32ce6b2c6 DIFF: https://github.com/llvm/llvm-project/commit/dbabad0fc04e7106a07dbeeb8ff23dc32ce6b2c6.d

[Lldb-commits] [clang] [lldb] [lldb] Analyze enum promotion type during parsing (PR #115005)

2025-01-31 Thread Michael Buch via lldb-commits
@@ -2367,11 +2369,36 @@ size_t DWARFASTParserClang::ParseChildEnumerators( } if (name && name[0] && got_value) { - m_ast.AddEnumerationValueToEnumerationType( + auto ECD = m_ast.AddEnumerationValueToEnumerationType( Michael137 wrote: > Mostl

[Lldb-commits] [clang] [lldb] [lldb] Analyze enum promotion type during parsing (PR #115005)

2025-01-31 Thread Ilia Kuklin via lldb-commits
https://github.com/kuilpd updated https://github.com/llvm/llvm-project/pull/115005 >From 4d797371598960baf7729d05590aa1a8c7077694 Mon Sep 17 00:00:00 2001 From: Ilia Kuklin Date: Mon, 4 Nov 2024 14:33:45 +0500 Subject: [PATCH 01/12] [lldb] Analyze enum promotion type during parsing --- clang/

[Lldb-commits] [clang] [lldb] [lldb] Analyze enum promotion type during parsing (PR #115005)

2025-01-31 Thread Ilia Kuklin via lldb-commits
@@ -2367,11 +2369,36 @@ size_t DWARFASTParserClang::ParseChildEnumerators( } if (name && name[0] && got_value) { - m_ast.AddEnumerationValueToEnumerationType( + auto ECD = m_ast.AddEnumerationValueToEnumerationType( kuilpd wrote: Well... I t

[Lldb-commits] [lldb] [lldb] Use validation combination of options in TestAbbreviations (PR #125270)

2025-01-31 Thread via lldb-commits
https://github.com/jimingham approved this pull request. I'm happy that you can make ResolveCommand fail on commands that aren't valid! These tests clearly thought they were making up a legal command string, so this change expresses better what the test intends anyway. https://github.com/llvm

[Lldb-commits] [lldb] [lldb] Use validation combination of options in TestAbbreviations (PR #125270)

2025-01-31 Thread Jonas Devlieghere via lldb-commits
https://github.com/JDevlieghere updated https://github.com/llvm/llvm-project/pull/125270 >From a33e43e56e8a58c1d53c566c0b9da7791254d68e Mon Sep 17 00:00:00 2001 From: Jonas Devlieghere Date: Fri, 31 Jan 2025 11:10:40 -0800 Subject: [PATCH 1/2] [lldb] Use validation combination of options in Te

[Lldb-commits] [lldb] [lldb] Use validation combination of options in TestAbbreviations (PR #125270)

2025-01-31 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 1b0becf739ace0e04c57b50ab701b5e3d009ccbb...a33e43e56e8a58c1d53c566c0b9da7791254d68e lldb/

[Lldb-commits] [lldb] [lldb] Use validation combination of options in TestAbbreviations (PR #125270)

2025-01-31 Thread via lldb-commits
llvmbot wrote: @llvm/pr-subscribers-lldb Author: Jonas Devlieghere (JDevlieghere) Changes Name and line number are part of different option groups and are not compatible. ``` (lldb) breakpoint set -n foo -l 10 error: invalid combination of options for the given command ``` The help outpu

[Lldb-commits] [lldb] [lldb] Use validation combination of options in TestAbbreviations (PR #125270)

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

[Lldb-commits] [lldb] [lldb] Use validation combination of options in TestAbbreviations (PR #125270)

2025-01-31 Thread Jonas Devlieghere via lldb-commits
https://github.com/JDevlieghere created https://github.com/llvm/llvm-project/pull/125270 Name and line number are part of different option groups and are not compatible. (lldb) breakpoint set -n foo -l 10 error: invalid combination of options for the given command The help output for `brea

[Lldb-commits] [lldb] [lldb] Use llvm::Error instead of CommandReturnObject for error reporting (PR #125125)

2025-01-31 Thread Jonas Devlieghere via lldb-commits
https://github.com/JDevlieghere updated https://github.com/llvm/llvm-project/pull/125125 >From 24ddc550e3ee61b863cbaea05ff49981bc20f7ad Mon Sep 17 00:00:00 2001 From: Jonas Devlieghere Date: Thu, 30 Jan 2025 14:25:16 -0800 Subject: [PATCH 1/4] [lldb] Use llvm::Error instead of CommandReturnObje

[Lldb-commits] [lldb] [lldb] Make ValueObjectDynamicValue::UpdateValue() point to a host b… (PR #125143)

2025-01-31 Thread Augusto Noronha via lldb-commits
augusto2112 wrote: > I worry a bit about the fact that in the host case, GetValueAsData is going > to end up calling: > > ``` > memcpy(dst, reinterpret_cast(address), byte_size); > ``` > > where address is the host data buffer and byte_size is the size of the new > dynamic type. But in the

[Lldb-commits] [lldb] [lldb][TypeSystemClang] Pass around enum value as uint64_t (PR #125244)

2025-01-31 Thread Felipe de Azevedo Piovezan via lldb-commits
https://github.com/felipepiovezan approved this pull request. after staring at this long enough, I think this is fine, since the uint->int conversion is done by apint https://github.com/llvm/llvm-project/pull/125244 ___ lldb-commits mailing list lldb-

[Lldb-commits] [lldb] [lldb] Support CommandInterpreter print callbacks (PR #125006)

2025-01-31 Thread Jonas Devlieghere via lldb-commits
https://github.com/JDevlieghere updated https://github.com/llvm/llvm-project/pull/125006 >From d9c0b0e1e6c18b6710c5b15843e23a96ca0a9dc8 Mon Sep 17 00:00:00 2001 From: Jonas Devlieghere Date: Tue, 28 Jan 2025 17:08:52 -0800 Subject: [PATCH 1/4] [lldb] Support CommandInterpreter print callbacks

[Lldb-commits] [lldb] [lldb] Support CommandInterpreter print callbacks (PR #125006)

2025-01-31 Thread via lldb-commits
jimingham wrote: We have a bunch of other structured output that we could start decorating this way. For instance if `image list` produced a a JSON-ified version of itself (maybe only when there was a callback present) and had a way to "get JSON-ified result" then it could render that list i

[Lldb-commits] [lldb] [lldb] Support CommandInterpreter print callbacks (PR #125006)

2025-01-31 Thread Jonas Devlieghere via lldb-commits
JDevlieghere wrote: Jim & I have been discussing this offline. Thanks for adding the additional context to the PR! https://github.com/llvm/llvm-project/pull/125006 ___ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-b

[Lldb-commits] [lldb] 1b0becf - [lldb] Add some formatting to variable.rst (NFC)

2025-01-31 Thread Dave Lee via lldb-commits
Author: Dave Lee Date: 2025-01-31T09:29:22-08:00 New Revision: 1b0becf739ace0e04c57b50ab701b5e3d009ccbb URL: https://github.com/llvm/llvm-project/commit/1b0becf739ace0e04c57b50ab701b5e3d009ccbb DIFF: https://github.com/llvm/llvm-project/commit/1b0becf739ace0e04c57b50ab701b5e3d009ccbb.diff LOG:

[Lldb-commits] [lldb] [lldb] Support CommandInterpreter print callbacks (PR #125006)

2025-01-31 Thread via lldb-commits
jimingham wrote: There are other ways you could extend this that would be very fun. For instance, we could make any command that conses up its result just by calling the ValueObjectPrinter on some ValueObject to also stuff that ValueObject to the command return. Then we could add SBCommandR

[Lldb-commits] [lldb] [lldb] Support CommandInterpreter print callbacks (PR #125006)

2025-01-31 Thread via lldb-commits
jimingham wrote: > > Yes, part of the requirement is that the output isn't printed by lldb > > itself, although the implementer is still in control with the return value. > > Okay. I was afraid of that. :) > > The code looks good, though I must admit that the functionality seems a bit.. > ran

[Lldb-commits] [lldb] Reland "[lldb] Implement basic support for reverse-continue" (#123906)" (PR #123945)

2025-01-31 Thread David Spickett via lldb-commits
DavidSpickett wrote: Windows on Arm passed, Arm and AArch64 Linux passed. No complaints so far. https://github.com/llvm/llvm-project/pull/123945 ___ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/l

[Lldb-commits] [lldb] [LLDB] Add Lexer (with tests) for DIL (Data Inspection Language). (PR #123521)

2025-01-31 Thread via lldb-commits
jimingham wrote: > On Jan 31, 2025, at 2:21 AM, Pavel Labath ***@***.***> wrote: > > > @labath commented on this pull request. > > Apart from the (mainly stylistic) inline comments, the biggest problem I see > is that the definition of an identifier is still too narrow. The restriction > o

[Lldb-commits] [lldb] [lldb][TypeSystemClang] Pass around enum value as uint64_t (PR #125244)

2025-01-31 Thread via lldb-commits
llvmbot wrote: @llvm/pr-subscribers-lldb Author: Michael Buch (Michael137) Changes The `DWARFASTParserClang` reads enum values as `int64_t`s regardless of the enumerators signedness. Then we pass it to `AddEnumerationValueToEnumerationType` and only then do we create an `APSInt` from it

[Lldb-commits] [lldb] [lldb][TypeSystemClang] Pass around enum value as uint64_t (PR #125244)

2025-01-31 Thread Michael Buch via lldb-commits
https://github.com/Michael137 created https://github.com/llvm/llvm-project/pull/125244 The `DWARFASTParserClang` reads enum values as `int64_t`s regardless of the enumerators signedness. Then we pass it to `AddEnumerationValueToEnumerationType` and only then do we create an `APSInt` from it.

[Lldb-commits] [lldb] [lldb][TypeSystemClang] Pass around enum value as uint64_t (PR #125244)

2025-01-31 Thread Michael Buch via lldb-commits
@@ -8541,12 +8541,10 @@ clang::EnumConstantDecl *TypeSystemClang::AddEnumerationValueToEnumerationType( clang::EnumConstantDecl *TypeSystemClang::AddEnumerationValueToEnumerationType( const CompilerType &enum_type, const Declaration &decl, const char *name, -int64_t e

[Lldb-commits] [lldb] Reland "[lldb] Implement basic support for reverse-continue" (PR #125242)

2025-01-31 Thread via lldb-commits
llvmbot wrote: @llvm/pr-subscribers-lldb Author: David Spickett (DavidSpickett) Changes This reverts commit a774de807e56c1147d4630bfec3110c11d41776e. This is the same changes as last time, plus: * We load the binary into the target object so that on Windows, we can resolve the locations

[Lldb-commits] [lldb] Reland "[lldb] Implement basic support for reverse-continue" (#123906)" (PR #123945)

2025-01-31 Thread David Spickett via lldb-commits
DavidSpickett wrote: Back in again after fixing Windows testing - https://github.com/llvm/llvm-project/pull/125242. https://github.com/llvm/llvm-project/pull/123945 ___ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-b

[Lldb-commits] [lldb] Reland "[lldb] Implement basic support for reverse-continue" (PR #125242)

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

[Lldb-commits] [lldb] 7e66cf7 - Reland "[lldb] Implement basic support for reverse-continue" (#125242)

2025-01-31 Thread via lldb-commits
Author: David Spickett Date: 2025-01-31T15:56:33Z New Revision: 7e66cf74fb4e6a103f923e34700a7b6f20ac2a9b URL: https://github.com/llvm/llvm-project/commit/7e66cf74fb4e6a103f923e34700a7b6f20ac2a9b DIFF: https://github.com/llvm/llvm-project/commit/7e66cf74fb4e6a103f923e34700a7b6f20ac2a9b.diff LOG

[Lldb-commits] [lldb] Reland "[lldb] Implement basic support for reverse-continue" (PR #125242)

2025-01-31 Thread David Spickett via lldb-commits
DavidSpickett wrote: Pull request just in case we have to discuss this more, going to merge right now. https://github.com/llvm/llvm-project/pull/125242 ___ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/li

[Lldb-commits] [lldb] Reland "[lldb] Implement basic support for reverse-continue" (PR #125242)

2025-01-31 Thread David Spickett via lldb-commits
https://github.com/DavidSpickett created https://github.com/llvm/llvm-project/pull/125242 This reverts commit a774de807e56c1147d4630bfec3110c11d41776e. This is the same changes as last time, plus: * We load the binary into the target object so that on Windows, we can resolve the locations of t

[Lldb-commits] [lldb] ae570d5 - [lldb][TypeSystemClang] Fix enum signedness in CompleteEnumType (#125203)

2025-01-31 Thread via lldb-commits
Author: Michael Buch Date: 2025-01-31T13:09:46Z New Revision: ae570d5d77e806784064ee819211868e745d0fbe URL: https://github.com/llvm/llvm-project/commit/ae570d5d77e806784064ee819211868e745d0fbe DIFF: https://github.com/llvm/llvm-project/commit/ae570d5d77e806784064ee819211868e745d0fbe.diff LOG:

[Lldb-commits] [lldb] [lldb][TypeSystemClang] Fix enum signedness in CompleteEnumType (PR #125203)

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

[Lldb-commits] [lldb] [lldb] Support CommandInterpreter print callbacks (PR #125006)

2025-01-31 Thread Pavel Labath via lldb-commits
https://github.com/labath commented: > Yes, part of the requirement is that the output isn't printed by lldb itself, > although the implementer is still in control with the return value. Okay. I was afraid of that. :) The code looks good, though I must admit that the functionality seems a bit.

[Lldb-commits] [lldb] [lldb] Support CommandInterpreter print callbacks (PR #125006)

2025-01-31 Thread Pavel Labath via lldb-commits
@@ -743,3 +743,15 @@ void SBCommand::SetFlags(uint32_t flags) { if (IsValid()) m_opaque_sp->GetFlags().Set(flags); } + +void SBCommandInterpreter::SetPrintCallback( +lldb::SBCommandPrintCallback callback, void *baton) { + LLDB_INSTRUMENT_VA(this, callback, baton); +

[Lldb-commits] [lldb] [lldb] Support CommandInterpreter print callbacks (PR #125006)

2025-01-31 Thread Pavel Labath via lldb-commits
@@ -17,6 +17,7 @@ namespace lldb_private { class CommandPluginInterfaceImplementation; +class CommandPrintCallbackBaton; labath wrote: I think these could go away too... https://github.com/llvm/llvm-project/pull/125006 ___

[Lldb-commits] [lldb] [lldb] Support CommandInterpreter print callbacks (PR #125006)

2025-01-31 Thread Pavel Labath via lldb-commits
https://github.com/labath edited https://github.com/llvm/llvm-project/pull/125006 ___ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

[Lldb-commits] [lldb] 8bd7281 - [lldb][test] explicit-member-function-quals.cpp: fix expected output

2025-01-31 Thread Michael Buch via lldb-commits
Author: Michael Buch Date: 2025-01-31T12:38:07Z New Revision: 8bd728180cadbab9fe11cd853670e488827ee302 URL: https://github.com/llvm/llvm-project/commit/8bd728180cadbab9fe11cd853670e488827ee302 DIFF: https://github.com/llvm/llvm-project/commit/8bd728180cadbab9fe11cd853670e488827ee302.diff LOG:

  1   2   >