[Lldb-commits] [lldb] [LLDB] Add SBProgress so Python scripts can also report progress (PR #119052)

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

[Lldb-commits] [lldb] [LLDB] Add SBProgress so Python scripts can also report progress (PR #119052)

2025-01-17 Thread Jacob Lalonde via lldb-commits
https://github.com/Jlalond updated https://github.com/llvm/llvm-project/pull/119052 >From d28dedabaeb6bdc763e8226e7d669ff4eba66d50 Mon Sep 17 00:00:00 2001 From: Jacob Lalonde Date: Fri, 6 Dec 2024 18:17:44 -0800 Subject: [PATCH 1/5] Add SBPRogress class to enable commands to async report to l

[Lldb-commits] [lldb] [LLDB] Add SBProgress so Python scripts can also report progress (PR #119052)

2025-01-17 Thread Jacob Lalonde via lldb-commits
@@ -0,0 +1,68 @@ +//===-- SBProgress.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: Apa

[Lldb-commits] [lldb] [LLDB][NFC] Calculate the region size of an in memory image if size isn't specified (PR #123148)

2025-01-16 Thread Jacob Lalonde via lldb-commits
@@ -2544,6 +2544,26 @@ ModuleSP Process::ReadModuleFromMemory(const FileSpec &file_spec, progress_up = std::make_unique( "Reading binary from memory", file_spec.GetFilename().GetString()); +if (size_to_read == 0) { + // No size was provided, figure ou

[Lldb-commits] [lldb] [LLDB][NFC] Calculate the region size of an in memory image if size isn't specified (PR #123148)

2025-01-16 Thread Jacob Lalonde via lldb-commits
@@ -2544,6 +2544,26 @@ ModuleSP Process::ReadModuleFromMemory(const FileSpec &file_spec, progress_up = std::make_unique( "Reading binary from memory", file_spec.GetFilename().GetString()); +if (size_to_read == 0) { + // No size was provided, figure ou

[Lldb-commits] [lldb] [LLDB][NFC] Calculate the region size of an in memory image if size isn't specified (PR #123148)

2025-01-16 Thread Jacob Lalonde via lldb-commits
@@ -2544,6 +2544,26 @@ ModuleSP Process::ReadModuleFromMemory(const FileSpec &file_spec, progress_up = std::make_unique( "Reading binary from memory", file_spec.GetFilename().GetString()); +if (size_to_read == 0) { + // No size was provided, figure ou

[Lldb-commits] [lldb] [LLDB] Add draft docstrings for SBSaveCoreOptions (PR #123132)

2025-01-16 Thread Jacob Lalonde via lldb-commits
https://github.com/Jlalond updated https://github.com/llvm/llvm-project/pull/123132 >From dbe633443f608f292c1f7f775d1b96b7eb808965 Mon Sep 17 00:00:00 2001 From: Jacob Lalonde Date: Tue, 14 Jan 2025 14:23:05 -0800 Subject: [PATCH 1/2] Add draft docstrings for SBSaveCoreOptions --- .../interfa

[Lldb-commits] [lldb] [LLDB] Add draft docstrings for SBSaveCoreOptions (PR #123132)

2025-01-16 Thread Jacob Lalonde via lldb-commits
@@ -0,0 +1,72 @@ +%feature("docstring", +"A container for options to use when saving a core file. + +SBSaveCoreOptions includes API's to specify the memory regions and threads to include +when generating a core file. These options are not exclusive the existing SaveCoreStyle opt

[Lldb-commits] [lldb] [LLDB] Add SBProgress so Python scripts can also report progress (PR #119052)

2025-01-16 Thread Jacob Lalonde via lldb-commits
Jlalond wrote: I can still make an RFC if that is desired, but I believed we reached a compromise with the new broadcast bit. I think we should frame the SBProgress very differently to @labath's recent improvements to Progress itself. I think the critical feature is the disposal of SBProgress

[Lldb-commits] [lldb] [LLDB] Make the thread list for SBSaveCoreOptions iterable (PR #122541)

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

[Lldb-commits] [lldb] [LLDB] Add draft docstrings for SBSaveCoreOptions (PR #123132)

2025-01-15 Thread Jacob Lalonde via lldb-commits
https://github.com/Jlalond created https://github.com/llvm/llvm-project/pull/123132 SBSaveCoreOptions has been around for awhile now, so I decided to draft up some Docstrings describing the functionality better. Some of my wording sounded a bit clunky due the optionality of each method call so

[Lldb-commits] [lldb] [lldb] Fix std::unordered_* synthetic children when typedefs are used. (PR #123125)

2025-01-15 Thread Jacob Lalonde via lldb-commits
https://github.com/Jlalond approved this pull request. Great to see a quick follow up on this. I left a comment, but I think we should still include some test cases not behind a typedef, and then include your test changes as well to cover all the bases. https://github.com/llvm/llvm-project/pul

[Lldb-commits] [lldb] [lldb] Fix std::unordered_* synthetic children when typedefs are used. (PR #123125)

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

[Lldb-commits] [lldb] [lldb] Fix std::unordered_* synthetic children when typedefs are used. (PR #123125)

2025-01-15 Thread Jacob Lalonde via lldb-commits
@@ -18,15 +18,19 @@ int main() { char buffer[sizeof(std::unordered_map)] = {0}; std::unordered_map &corrupt_map = *(std::unordered_map *)buffer; - std::unordered_map map; // Set break point at this line. + // Make a typedef to ensure functionality when typedefs are used

[Lldb-commits] [lldb] [lldb] Handle a byte size of zero in CompilerType::GetValueAsScalar (PR #123107)

2025-01-15 Thread Jacob Lalonde via lldb-commits
@@ -1105,7 +1105,7 @@ bool CompilerType::GetValueAsScalar(const lldb_private::DataExtractor &data, return false; std::optional byte_size = GetByteSize(exe_scope); -if (!byte_size) +if (!byte_size || *byte_size == 0) Jlalond wrote: Nit: I wo

[Lldb-commits] [lldb] [lldb] Handle a byte size of zero in CompilerType::GetValueAsScalar (PR #123107)

2025-01-15 Thread Jacob Lalonde via lldb-commits
https://github.com/Jlalond approved this pull request. https://github.com/llvm/llvm-project/pull/123107 ___ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

[Lldb-commits] [lldb] [LLDB] Make the thread list for SBSaveCoreOptions iterable (PR #122541)

2025-01-15 Thread Jacob Lalonde via lldb-commits
https://github.com/Jlalond updated https://github.com/llvm/llvm-project/pull/122541 >From 5a756db04b1e5124b99fa44c162439fbf8385aee Mon Sep 17 00:00:00 2001 From: Jacob Lalonde Date: Fri, 10 Jan 2025 14:26:10 -0800 Subject: [PATCH 1/8] Make the thread list for SBSaveCoreOptions iterable --- ll

[Lldb-commits] [lldb] [LLDB] Make the thread list for SBSaveCoreOptions iterable (PR #122541)

2025-01-14 Thread Jacob Lalonde via lldb-commits
@@ -115,8 +115,21 @@ const MemoryRanges &SaveCoreOptions::GetCoreFileMemoryRanges() const { return m_regions_to_save; } -Status SaveCoreOptions::EnsureValidConfiguration( -lldb::ProcessSP process_sp) const { +lldb::ThreadCollectionSP SaveCoreOptions::GetThreadsToSave()

[Lldb-commits] [lldb] [LLDB] Make the thread list for SBSaveCoreOptions iterable (PR #122541)

2025-01-14 Thread Jacob Lalonde via lldb-commits
https://github.com/Jlalond updated https://github.com/llvm/llvm-project/pull/122541 >From 5a756db04b1e5124b99fa44c162439fbf8385aee Mon Sep 17 00:00:00 2001 From: Jacob Lalonde Date: Fri, 10 Jan 2025 14:26:10 -0800 Subject: [PATCH 1/7] Make the thread list for SBSaveCoreOptions iterable --- ll

[Lldb-commits] [lldb] [LLDB] Make the thread list for SBSaveCoreOptions iterable (PR #122541)

2025-01-13 Thread Jacob Lalonde via lldb-commits
@@ -79,3 +81,26 @@ def test_adding_thread_different_process(self): self.assertTrue(error.Fail()) error = options.AddThread(thread) self.assertTrue(error.Success()) + +def test_removing_and_adding_insertion_order(self): +"""Test insertion orde

[Lldb-commits] [lldb] [LLDB][Minidump] Have Minidumps save off and properly read TLS data (PR #109477)

2025-01-13 Thread Jacob Lalonde via lldb-commits
Jlalond wrote: Hey @DavidSpickett, sure I'm drafting that up now. What time frame should we include commits from? I ask because one of my original patches added [64b support, and paging](https://github.com/llvm/llvm-project/pull/95312). I assume we could include anyway as I don't see it in the

[Lldb-commits] [lldb] [LLDB] Add SBProgress so Python scripts can also report progress (PR #119052)

2025-01-13 Thread Jacob Lalonde via lldb-commits
Jlalond wrote: @JDevlieghere friendly bump, I just wanna sneak this into our release this week, I think all the comments are addressed! https://github.com/llvm/llvm-project/pull/119052 ___ lldb-commits mailing list lldb-commits@lists.llvm.org https://

[Lldb-commits] [lldb] [LLDB] Make the thread list for SBSaveCoreOptions iterable (PR #122541)

2025-01-13 Thread Jacob Lalonde via lldb-commits
https://github.com/Jlalond updated https://github.com/llvm/llvm-project/pull/122541 >From 5a756db04b1e5124b99fa44c162439fbf8385aee Mon Sep 17 00:00:00 2001 From: Jacob Lalonde Date: Fri, 10 Jan 2025 14:26:10 -0800 Subject: [PATCH 1/6] Make the thread list for SBSaveCoreOptions iterable --- ll

[Lldb-commits] [lldb] [LLDB] Make the thread list for SBSaveCoreOptions iterable (PR #122541)

2025-01-10 Thread Jacob Lalonde via lldb-commits
@@ -56,7 +57,7 @@ class SaveCoreOptions { std::optional m_file; std::optional m_style; lldb::ProcessSP m_process_sp; - std::unordered_set m_threads_to_save; + std::unordered_map m_threads_to_save; Jlalond wrote: Yeah we can, good call out. https://git

[Lldb-commits] [lldb] [LLDB] Make the thread list for SBSaveCoreOptions iterable (PR #122541)

2025-01-10 Thread Jacob Lalonde via lldb-commits
https://github.com/Jlalond updated https://github.com/llvm/llvm-project/pull/122541 >From 5a756db04b1e5124b99fa44c162439fbf8385aee Mon Sep 17 00:00:00 2001 From: Jacob Lalonde Date: Fri, 10 Jan 2025 14:26:10 -0800 Subject: [PATCH 1/5] Make the thread list for SBSaveCoreOptions iterable --- ll

[Lldb-commits] [lldb] [LLDB] Make the thread list for SBSaveCoreOptions iterable (PR #122541)

2025-01-10 Thread Jacob Lalonde via lldb-commits
https://github.com/Jlalond updated https://github.com/llvm/llvm-project/pull/122541 >From 5a756db04b1e5124b99fa44c162439fbf8385aee Mon Sep 17 00:00:00 2001 From: Jacob Lalonde Date: Fri, 10 Jan 2025 14:26:10 -0800 Subject: [PATCH 1/4] Make the thread list for SBSaveCoreOptions iterable --- ll

[Lldb-commits] [lldb] [LLDB] Make the thread list for SBSaveCoreOptions iterable (PR #122541)

2025-01-10 Thread Jacob Lalonde via lldb-commits
Jlalond wrote: @clayborg and I chatted offline. The need for indexable access wasn't as important as exposing an enumeration of threads. So we instead return a copy of the thread list in an SBThreadCollection. https://github.com/llvm/llvm-project/pull/122541 ___

[Lldb-commits] [lldb] [LLDB] Make the thread list for SBSaveCoreOptions iterable (PR #122541)

2025-01-10 Thread Jacob Lalonde via lldb-commits
https://github.com/Jlalond updated https://github.com/llvm/llvm-project/pull/122541 >From 5a756db04b1e5124b99fa44c162439fbf8385aee Mon Sep 17 00:00:00 2001 From: Jacob Lalonde Date: Fri, 10 Jan 2025 14:26:10 -0800 Subject: [PATCH 1/3] Make the thread list for SBSaveCoreOptions iterable --- ll

[Lldb-commits] [lldb] [LLDB] Make the thread list for SBSaveCoreOptions iterable (PR #122541)

2025-01-10 Thread Jacob Lalonde via lldb-commits
https://github.com/Jlalond updated https://github.com/llvm/llvm-project/pull/122541 >From 5a756db04b1e5124b99fa44c162439fbf8385aee Mon Sep 17 00:00:00 2001 From: Jacob Lalonde Date: Fri, 10 Jan 2025 14:26:10 -0800 Subject: [PATCH 1/3] Make the thread list for SBSaveCoreOptions iterable --- ll

[Lldb-commits] [lldb] [LLDB] Make the thread list for SBSaveCoreOptions iterable (PR #122541)

2025-01-10 Thread Jacob Lalonde via lldb-commits
@@ -47,6 +46,9 @@ class SaveCoreOptions { void AddMemoryRegionToSave(const lldb_private::MemoryRegionInfo ®ion); + std::optional GetThreadAtIndex(uint32_t idx) const; Jlalond wrote: We can, I'm personally willing to trade the complexity for the performanc

[Lldb-commits] [lldb] [LLDB] Make the thread list for SBSaveCoreOptions iterable (PR #122541)

2025-01-10 Thread Jacob Lalonde via lldb-commits
https://github.com/Jlalond updated https://github.com/llvm/llvm-project/pull/122541 >From 5a756db04b1e5124b99fa44c162439fbf8385aee Mon Sep 17 00:00:00 2001 From: Jacob Lalonde Date: Fri, 10 Jan 2025 14:26:10 -0800 Subject: [PATCH 1/2] Make the thread list for SBSaveCoreOptions iterable --- ll

[Lldb-commits] [lldb] [LLDB] Make the thread list for SBSaveCoreOptions iterable (PR #122541)

2025-01-10 Thread Jacob Lalonde via lldb-commits
https://github.com/Jlalond created https://github.com/llvm/llvm-project/pull/122541 This patch adds the ability to get a thread at a give index, based on insertion order, for SBSaveCore Options. This is primarily to benefit scripts using SBSaveCore, and remove the need to have both options and

[Lldb-commits] [lldb] [LLDB] Add SBProgress so Python scripts can also report progress (PR #119052)

2025-01-08 Thread Jacob Lalonde via lldb-commits
Jlalond wrote: @JDevlieghere Do we want to add new tests having the external bit by default? I added unit tests in the [external category bit](https://github.com/llvm/llvm-project/pull/120171/files#diff-a1f24599f1588366a91518f71afd1a54b6f8172a1f0891747e6972d126be4159) PR. Any additional test r

[Lldb-commits] [lldb] [LLDB] Add SBProgress so Python scripts can also report progress (PR #119052)

2025-01-08 Thread Jacob Lalonde via lldb-commits
https://github.com/Jlalond updated https://github.com/llvm/llvm-project/pull/119052 >From d28dedabaeb6bdc763e8226e7d669ff4eba66d50 Mon Sep 17 00:00:00 2001 From: Jacob Lalonde Date: Fri, 6 Dec 2024 18:17:44 -0800 Subject: [PATCH 1/4] Add SBPRogress class to enable commands to async report to l

[Lldb-commits] [lldb] [LLDB] Add SBProgress so Python scripts can also report progress (PR #119052)

2025-01-08 Thread Jacob Lalonde via lldb-commits
https://github.com/Jlalond updated https://github.com/llvm/llvm-project/pull/119052 >From d28dedabaeb6bdc763e8226e7d669ff4eba66d50 Mon Sep 17 00:00:00 2001 From: Jacob Lalonde Date: Fri, 6 Dec 2024 18:17:44 -0800 Subject: [PATCH 1/4] Add SBPRogress class to enable commands to async report to l

[Lldb-commits] [lldb] [LLDB] Add SBProgress so Python scripts can also report progress (PR #119052)

2025-01-08 Thread Jacob Lalonde via lldb-commits
https://github.com/Jlalond updated https://github.com/llvm/llvm-project/pull/119052 >From d28dedabaeb6bdc763e8226e7d669ff4eba66d50 Mon Sep 17 00:00:00 2001 From: Jacob Lalonde Date: Fri, 6 Dec 2024 18:17:44 -0800 Subject: [PATCH 1/3] Add SBPRogress class to enable commands to async report to l

[Lldb-commits] [lldb] [llvm] [LLDB][Minidump] Make workaround for the Dynamic loader issue (PR #120166)

2025-01-07 Thread Jacob Lalonde via lldb-commits
@@ -89,8 +89,11 @@ Status MinidumpFileBuilder::AddHeaderAndCalculateDirectories() { "Failed to fill in header and directory " "sections. Written / Expected (%" PRIx64 " / %" PRIx64 ")", new_offset, m_saved_data_size); - return error; + if (error.Fai

[Lldb-commits] [lldb] [llvm] [LLDB][Minidump] Make workaround for the Dynamic loader issue (PR #120166)

2025-01-07 Thread Jacob Lalonde via lldb-commits
@@ -89,8 +89,11 @@ Status MinidumpFileBuilder::AddHeaderAndCalculateDirectories() { "Failed to fill in header and directory " "sections. Written / Expected (%" PRIx64 " / %" PRIx64 ")", new_offset, m_saved_data_size); - return error; + if (error.Fai

[Lldb-commits] [lldb] [llvm] [LLDB][Minidump] Make workaround for the Dynamic loader issue (PR #120166)

2025-01-07 Thread Jacob Lalonde via lldb-commits
@@ -89,8 +89,11 @@ Status MinidumpFileBuilder::AddHeaderAndCalculateDirectories() { "Failed to fill in header and directory " "sections. Written / Expected (%" PRIx64 " / %" PRIx64 ")", new_offset, m_saved_data_size); - return error; + if (error.Fai

[Lldb-commits] [lldb] [LLDB] Add external progress bit category (PR #120171)

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

[Lldb-commits] [lldb] [LLDB] Add external progress bit category (PR #120171)

2025-01-06 Thread Jacob Lalonde via lldb-commits
@@ -134,6 +144,9 @@ class Progress { /// Data needed by the debugger to broadcast a progress event. const ProgressData m_progress_data; + /// The origin of this progress event. + const Origin m_origin; Jlalond wrote: Good catch! Fixed. https://github.c

[Lldb-commits] [lldb] [LLDB] Add external progress bit category (PR #120171)

2025-01-06 Thread Jacob Lalonde via lldb-commits
https://github.com/Jlalond updated https://github.com/llvm/llvm-project/pull/120171 >From fcad0a35ec2e10ec90591079d05c3b1726d22967 Mon Sep 17 00:00:00 2001 From: Jacob Lalonde Date: Mon, 16 Dec 2024 17:57:44 -0800 Subject: [PATCH 1/7] Add external progress bit category --- lldb/include/lldb/C

[Lldb-commits] [lldb] [LLDB] Add external progress bit category (PR #120171)

2025-01-06 Thread Jacob Lalonde via lldb-commits
Jlalond wrote: Hey @JDevlieghere, I was out for the holidays, but did you want to take a second look at this? Or can I land it to rebase the SBProgress changes on top of? https://github.com/llvm/llvm-project/pull/120171 ___ lldb-commits mailing list

[Lldb-commits] [lldb] [llvm] [LLDB][Minidump] Make workaround for the Dynamic loader issue (PR #120166)

2024-12-30 Thread Jacob Lalonde via lldb-commits
https://github.com/Jlalond closed https://github.com/llvm/llvm-project/pull/120166 ___ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

[Lldb-commits] [lldb] [llvm] [LLDB][Minidump] Make workaround for the Dynamic loader issue (PR #120166)

2024-12-30 Thread Jacob Lalonde via lldb-commits
@@ -89,8 +89,11 @@ Status MinidumpFileBuilder::AddHeaderAndCalculateDirectories() { "Failed to fill in header and directory " "sections. Written / Expected (%" PRIx64 " / %" PRIx64 ")", new_offset, m_saved_data_size); - return error; + if (error.Fai

[Lldb-commits] [lldb] [llvm] [LLDB][Minidump] Make workaround for the Dynamic loader issue (PR #120166)

2024-12-30 Thread Jacob Lalonde via lldb-commits
https://github.com/Jlalond updated https://github.com/llvm/llvm-project/pull/120166 >From d5dfb15e1ae90ade9b25374eefc605cc36685a43 Mon Sep 17 00:00:00 2001 From: Jacob Lalonde Date: Mon, 16 Dec 2024 16:04:01 -0800 Subject: [PATCH 1/6] Make workaround for the Dynamic loader issue --- .../Minid

[Lldb-commits] [lldb] [llvm] [LLDB][Minidump] Make workaround for the Dynamic loader issue (PR #120166)

2024-12-23 Thread Jacob Lalonde via lldb-commits
https://github.com/Jlalond updated https://github.com/llvm/llvm-project/pull/120166 >From d5dfb15e1ae90ade9b25374eefc605cc36685a43 Mon Sep 17 00:00:00 2001 From: Jacob Lalonde Date: Mon, 16 Dec 2024 16:04:01 -0800 Subject: [PATCH 1/5] Make workaround for the Dynamic loader issue --- .../Minid

[Lldb-commits] [lldb] [llvm] [LLDB][Minidump] Make workaround for the Dynamic loader issue (PR #120166)

2024-12-23 Thread Jacob Lalonde via lldb-commits
Jlalond wrote: > I don't find the "MinidumpParser does not distinguish empty/missing streams" > argument particularly convincing, since the underlying llvm class > (`MinidumpFile`) does distinguish them and a > `MinidumpParser::ContainsStream()` function would be a lot simpler than this > mag

[Lldb-commits] [lldb] [llvm] [LLDB][Minidump] Make workaround for the Dynamic loader issue (PR #120166)

2024-12-23 Thread Jacob Lalonde via lldb-commits
@@ -126,6 +129,17 @@ Status MinidumpFileBuilder::AddDirectory(StreamType type, return error; } +Status MinidumpFileBuilder::AddLLDBGeneratedStream() { + Status error; + StreamType type = StreamType::LLDBGenerated; Jlalond wrote: Dropped the magic bytes an

[Lldb-commits] [lldb] [llvm] [LLDB][Minidump] Make workaround for the Dynamic loader issue (PR #120166)

2024-12-23 Thread Jacob Lalonde via lldb-commits
https://github.com/Jlalond updated https://github.com/llvm/llvm-project/pull/120166 >From d5dfb15e1ae90ade9b25374eefc605cc36685a43 Mon Sep 17 00:00:00 2001 From: Jacob Lalonde Date: Mon, 16 Dec 2024 16:04:01 -0800 Subject: [PATCH 1/4] Make workaround for the Dynamic loader issue --- .../Minid

[Lldb-commits] [lldb] [llvm] [LLDB][Minidump] Make workaround for the Dynamic loader issue (PR #120166)

2024-12-20 Thread Jacob Lalonde via lldb-commits
https://github.com/Jlalond updated https://github.com/llvm/llvm-project/pull/120166 >From d5dfb15e1ae90ade9b25374eefc605cc36685a43 Mon Sep 17 00:00:00 2001 From: Jacob Lalonde Date: Mon, 16 Dec 2024 16:04:01 -0800 Subject: [PATCH 1/3] Make workaround for the Dynamic loader issue --- .../Minid

[Lldb-commits] [lldb] [llvm] [LLDB][Minidump] Make workaround for the Dynamic loader issue (PR #120166)

2024-12-20 Thread Jacob Lalonde via lldb-commits
https://github.com/Jlalond updated https://github.com/llvm/llvm-project/pull/120166 >From d5dfb15e1ae90ade9b25374eefc605cc36685a43 Mon Sep 17 00:00:00 2001 From: Jacob Lalonde Date: Mon, 16 Dec 2024 16:04:01 -0800 Subject: [PATCH 1/3] Make workaround for the Dynamic loader issue --- .../Minid

[Lldb-commits] [lldb] [llvm] [LLDB][Minidump] Make workaround for the Dynamic loader issue (PR #120166)

2024-12-20 Thread Jacob Lalonde via lldb-commits
Jlalond wrote: @labath I went with your suggestion as the better idea. I ended up just writing 'LLDB' to the stream, because the current API behavior for MinidumpParser is to return an empty ArrayRef. So there was no direct way to detect an existing but empty stream. For now I just set the che

[Lldb-commits] [lldb] [llvm] [LLDB][Minidump] Make workaround for the Dynamic loader issue (PR #120166)

2024-12-20 Thread Jacob Lalonde via lldb-commits
https://github.com/Jlalond updated https://github.com/llvm/llvm-project/pull/120166 >From d5dfb15e1ae90ade9b25374eefc605cc36685a43 Mon Sep 17 00:00:00 2001 From: Jacob Lalonde Date: Mon, 16 Dec 2024 16:04:01 -0800 Subject: [PATCH 1/2] Make workaround for the Dynamic loader issue --- .../Minid

[Lldb-commits] [lldb] [LLDB] Add external progress bit category (PR #120171)

2024-12-20 Thread Jacob Lalonde via lldb-commits
https://github.com/Jlalond updated https://github.com/llvm/llvm-project/pull/120171 >From fcad0a35ec2e10ec90591079d05c3b1726d22967 Mon Sep 17 00:00:00 2001 From: Jacob Lalonde Date: Mon, 16 Dec 2024 17:57:44 -0800 Subject: [PATCH 1/6] Add external progress bit category --- lldb/include/lldb/C

[Lldb-commits] [lldb] [LLDB] Add external progress bit category (PR #120171)

2024-12-19 Thread Jacob Lalonde via lldb-commits
https://github.com/Jlalond updated https://github.com/llvm/llvm-project/pull/120171 >From fcad0a35ec2e10ec90591079d05c3b1726d22967 Mon Sep 17 00:00:00 2001 From: Jacob Lalonde Date: Mon, 16 Dec 2024 17:57:44 -0800 Subject: [PATCH 1/5] Add external progress bit category --- lldb/include/lldb/C

[Lldb-commits] [lldb] [LLDB] Add external progress bit category (PR #120171)

2024-12-17 Thread Jacob Lalonde via lldb-commits
@@ -106,9 +107,15 @@ void Progress::ReportProgress() { if (completed < m_prev_completed) return; // An overflow in the m_completed counter. Just ignore these events. + // Change the category bit if we're an internal or external progress. + uint32_t progress_category_b

[Lldb-commits] [lldb] [LLDB] Add external progress bit category (PR #120171)

2024-12-16 Thread Jacob Lalonde via lldb-commits
Jlalond wrote: @JDevlieghere I'm hoping I did this right, additionally any preference on where the enum should live? I debated on enumerations and just make a generic 'eventorigin' enumeration that we could reuse for events in the future. But I figured that was reaching. https://github.com/ll

[Lldb-commits] [lldb] [LLDB] Add external progress bit category (PR #120171)

2024-12-16 Thread Jacob Lalonde via lldb-commits
https://github.com/Jlalond created https://github.com/llvm/llvm-project/pull/120171 As feedback on #119052, it was recommended I add a new bit to delineate internal and external progress events. This patch adds this new category, and sets up Progress.h to support external events via SBProgress

[Lldb-commits] [lldb] [llvm] [LLDB][Minidump] Make workaround for the Dynamic loader issue (PR #120166)

2024-12-16 Thread Jacob Lalonde via lldb-commits
https://github.com/Jlalond unassigned https://github.com/llvm/llvm-project/pull/120166 ___ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

[Lldb-commits] [lldb] [llvm] [LLDB][Minidump] Make workaround for the Dynamic loader issue (PR #120166)

2024-12-16 Thread Jacob Lalonde via lldb-commits
https://github.com/Jlalond unassigned https://github.com/llvm/llvm-project/pull/120166 ___ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

[Lldb-commits] [lldb] [llvm] [LLDB][Minidump] Make workaround for the Dynamic loader issue (PR #120166)

2024-12-16 Thread Jacob Lalonde via lldb-commits
https://github.com/Jlalond created https://github.com/llvm/llvm-project/pull/120166 In #119598 my recent TLS feature seems to break crashpad symbols. I have a few ideas on how this is happening, but for now as a mitigation I'm checking if the Minidump was LLDB generated, and if so leveraging t

[Lldb-commits] [lldb] [LLDB] Add SBProgress so Python scripts can also report progress (PR #119052)

2024-12-09 Thread Jacob Lalonde via lldb-commits
Jlalond wrote: @JDevlieghere if I were to add a way to identify an 'internal' vs 'external' progress, do you want me to make all consumers aware to this distinction or are we cool with just exposing the property as a part of this patch? https://github.com/llvm/llvm-project/pull/119052

[Lldb-commits] [lldb] [LLDB] Add SBProgress so Python scripts can also report progress (PR #119052)

2024-12-09 Thread Jacob Lalonde via lldb-commits
Jlalond wrote: > > Just to throw my opinion into the debate; I view Progress.h in the same way > > as I view any printing to the terminal (or stdout). We already allow Python > > commands, and I believe formatters, to print to the user's console. So > > restricting progress because we don't wa

[Lldb-commits] [lldb] [LLDB] Add SBProgress so Python scripts can also report progress (PR #119052)

2024-12-09 Thread Jacob Lalonde via lldb-commits
https://github.com/Jlalond updated https://github.com/llvm/llvm-project/pull/119052 >From 2adc8124e9b423d7c195cc6b986b43dfa8c10fe4 Mon Sep 17 00:00:00 2001 From: Jacob Lalonde Date: Fri, 6 Dec 2024 18:17:44 -0800 Subject: [PATCH 1/2] Add SBPRogress class to enable commands to async report to l

[Lldb-commits] [lldb] [LLDB] Add SBProgress so Python scripts can also report progress (PR #119052)

2024-12-09 Thread Jacob Lalonde via lldb-commits
https://github.com/Jlalond updated https://github.com/llvm/llvm-project/pull/119052 >From 2adc8124e9b423d7c195cc6b986b43dfa8c10fe4 Mon Sep 17 00:00:00 2001 From: Jacob Lalonde Date: Fri, 6 Dec 2024 18:17:44 -0800 Subject: [PATCH 1/2] Add SBPRogress class to enable commands to async report to l

[Lldb-commits] [lldb] [LLDB] Add SBProgress so Python scripts can also report progress (PR #119052)

2024-12-09 Thread Jacob Lalonde via lldb-commits
Jlalond wrote: > The patch itself looks good with some nits, but I'm (still) on the fence > whether this a good idea. > > In the past, a similar question has come up in the context of logging and > whether we want to add SB APIs to make use of LLDB's internals. The argument > in favor is that

[Lldb-commits] [lldb] [LLDB] Add SBProgress so Python scripts can also report progress (PR #119052)

2024-12-09 Thread Jacob Lalonde via lldb-commits
@@ -0,0 +1,34 @@ +//===-- SBProgress.cpp ---*- 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:

[Lldb-commits] [lldb] [LLDB] Add SBProgress so Python scripts can also report progress (PR #119052)

2024-12-06 Thread Jacob Lalonde via lldb-commits
https://github.com/Jlalond created https://github.com/llvm/llvm-project/pull/119052 Recently I've been working on a lot of internal Python tooling, and in certain cases I want to report async to the script over DAP. Progress.h already handles this, so I've exposed Progress via the SB API so Py

[Lldb-commits] [lldb] Make SBMemoryRegionInfoList iterable with Python SWIG (PR #117358)

2024-12-03 Thread Jacob Lalonde via lldb-commits
https://github.com/Jlalond closed https://github.com/llvm/llvm-project/pull/117358 ___ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

[Lldb-commits] [lldb] [LLDB][ThreadELFCore] Set all the properties of ELFLinuxSigInfo to a non build dependent size (PR #117604)

2024-11-26 Thread Jacob Lalonde via lldb-commits
https://github.com/Jlalond closed https://github.com/llvm/llvm-project/pull/117604 ___ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

[Lldb-commits] [lldb] [LLDB][ThreadELFCore] Set all the properties of ELFLinuxSigInfo to a non build dependent size (PR #117604)

2024-11-26 Thread Jacob Lalonde via lldb-commits
Jlalond wrote: > The build succeeded! > > The source comment at line 82 caught my attention, though. It may imply that > data layout is important in this struct, i.e. it should match `siginfo_t` > returned by the OS. But this change is not guaranteeing that. > > Actually, the order of the fir

[Lldb-commits] [lldb] [LLDB][ThreadELFCore] Set all the properties of ELFLinuxSigInfo to a non build dependent size (PR #117604)

2024-11-25 Thread Jacob Lalonde via lldb-commits
Jlalond wrote: @tuliom Experimented on godbolt a bit, it looks like alignas(8) will handle our padding to 56 on 32 and 64 https://godbolt.org/z/ssqeeEs71 https://github.com/llvm/llvm-project/pull/117604 ___ lldb-commits mailing list lldb-commits@lists

[Lldb-commits] [lldb] [LLDB][ThreadELFCore] Set all the properties of ELFLinuxSigInfo to a non build dependent size (PR #117604)

2024-11-25 Thread Jacob Lalonde via lldb-commits
https://github.com/Jlalond updated https://github.com/llvm/llvm-project/pull/117604 >From 693f1039e10e5dd26ef0d600b03895f71f340b23 Mon Sep 17 00:00:00 2001 From: Jacob Lalonde Date: Mon, 25 Nov 2024 10:26:07 -0800 Subject: [PATCH 1/2] Set all the properties of ELFLinuxSigInfo to a non build de

[Lldb-commits] [lldb] [LLDB][ThreadELFCore] Set all the properties of ELFLinuxSigInfo to a non build dependent size (PR #117604)

2024-11-25 Thread Jacob Lalonde via lldb-commits
https://github.com/Jlalond created https://github.com/llvm/llvm-project/pull/117604 On #110065 the changes to LinuxSigInfo Struct introduced some variables that will differ in size on 32b or 64b. I've rectified this by setting them all to build independent types. >From 693f1039e10e5dd26ef0d60

[Lldb-commits] [lldb] [LLDB][ThreadELFCore] Set all the properties of ELFLinuxSigInfo to a non build dependent size (PR #117604)

2024-11-25 Thread Jacob Lalonde via lldb-commits
Jlalond wrote: @tuliom I don't have a way to verify this, would you mind assisting? https://github.com/llvm/llvm-project/pull/117604 ___ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

[Lldb-commits] [lldb] [LLDB][ProcessELFCore] Add Description to ProcessELFCore/ELFThread stop reasons (PR #110065)

2024-11-25 Thread Jacob Lalonde via lldb-commits
Jlalond wrote: Ack, sorry about the delay. I will get this fixed today. https://github.com/llvm/llvm-project/pull/110065 ___ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

[Lldb-commits] [lldb] Make SBMemoryRegionInfoList iterable with Python SWIG (PR #117358)

2024-11-22 Thread Jacob Lalonde via lldb-commits
Jlalond wrote: @lukejriddle Can we add a test for this? We just want to have a test case that iterates the regions. https://github.com/llvm/llvm-project/pull/117358 ___ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-

[Lldb-commits] [lldb] [LLDB][ProcessELFCore] Add Description to ProcessELFCore/ELFThread stop reasons (PR #110065)

2024-11-21 Thread Jacob Lalonde via lldb-commits
https://github.com/Jlalond closed https://github.com/llvm/llvm-project/pull/110065 ___ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

[Lldb-commits] [lldb] Add support for reading the dynamic symbol table from PT_DYNAMIC (PR #116689)

2024-11-18 Thread Jacob Lalonde via lldb-commits
https://github.com/Jlalond approved this pull request. [The Build Fix](https://github.com/llvm/llvm-project/pull/116689/commits/1bcfd2a9a1e7ea4ee984f7198ae4ba4148c4861f), looks good to me. I'm happier with us setting dynsym before the if condition as well. https://github.com/llvm/llvm-project

[Lldb-commits] [lldb] [lldb] Unify/improve MainLoop signal handling (PR #115197)

2024-11-14 Thread Jacob Lalonde via lldb-commits
https://github.com/Jlalond edited https://github.com/llvm/llvm-project/pull/115197 ___ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

[Lldb-commits] [lldb] [lldb] Unify/improve MainLoop signal handling (PR #115197)

2024-11-14 Thread Jacob Lalonde via lldb-commits
@@ -179,55 +142,34 @@ Status MainLoopPosix::RunImpl::Poll() { read_fds.push_back(pfd); } - if (ppoll(read_fds.data(), read_fds.size(), nullptr, &sigmask) == -1 && + if (ppoll(read_fds.data(), read_fds.size(), +/*timeout=*/nullptr, Jlalond w

[Lldb-commits] [lldb] [lldb] Unify/improve MainLoop signal handling (PR #115197)

2024-11-14 Thread Jacob Lalonde via lldb-commits
@@ -384,6 +313,21 @@ void MainLoopPosix::ProcessReadObject(IOObject::WaitableHandle handle) { it->second(*this); // Do the work } +void MainLoopPosix::ProcessSignals() { + std::vector signals; Jlalond wrote: (Uneducated question) Is int actually the cor

[Lldb-commits] [lldb] [lldb] Unify/improve MainLoop signal handling (PR #115197)

2024-11-14 Thread Jacob Lalonde via lldb-commits
https://github.com/Jlalond approved this pull request. I'm not expert, but everything looks rigorous and you've added a lot of comments. I left a few nits and a singular question. I would encourage comments on some file descriptors for the less knowledgeable of us (namely me!) https://github.

[Lldb-commits] [lldb] [lldb] Unify/improve MainLoop signal handling (PR #115197)

2024-11-14 Thread Jacob Lalonde via lldb-commits
@@ -179,55 +142,34 @@ Status MainLoopPosix::RunImpl::Poll() { read_fds.push_back(pfd); } - if (ppoll(read_fds.data(), read_fds.size(), nullptr, &sigmask) == -1 && + if (ppoll(read_fds.data(), read_fds.size(), +/*timeout=*/nullptr, +/*sigmask=*/n

[Lldb-commits] [lldb] [lldb] Unify/improve MainLoop signal handling (PR #115197)

2024-11-14 Thread Jacob Lalonde via lldb-commits
@@ -17,29 +17,53 @@ #include #include #include +#include #include // Multiplexing is implemented using kqueue on systems that support it (BSD -// variants including OSX). On linux we use ppoll, while android uses pselect -// (ppoll is present but not implemented proper

[Lldb-commits] [lldb] [lldb] Make Doxygen commits consistent with the rest of LLDB (NFC) (PR #116269)

2024-11-14 Thread Jacob Lalonde via lldb-commits
https://github.com/Jlalond approved this pull request. LGTM @JDevlieghere! https://github.com/llvm/llvm-project/pull/116269 ___ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

[Lldb-commits] [lldb] [LLDB][SBSaveCore] Add Extension to Save a thread and N pointers deep (PR #111601)

2024-11-12 Thread Jacob Lalonde via lldb-commits
https://github.com/Jlalond closed https://github.com/llvm/llvm-project/pull/111601 ___ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

[Lldb-commits] [lldb] [lldb] Add timed callbacks to the MainLoop class (PR #112895)

2024-11-06 Thread Jacob Lalonde via lldb-commits
https://github.com/Jlalond edited https://github.com/llvm/llvm-project/pull/112895 ___ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

[Lldb-commits] [lldb] [lldb] Add timed callbacks to the MainLoop class (PR #112895)

2024-11-06 Thread Jacob Lalonde via lldb-commits
https://github.com/Jlalond approved this pull request. Appreciate the explanation to your concerns. I'll try to get to your syscall replacement PR today or tomorrow. https://github.com/llvm/llvm-project/pull/112895 ___ lldb-commits mailing list lldb-c

[Lldb-commits] [lldb] [lldb] Add timed callbacks to the MainLoop class (PR #112895)

2024-11-06 Thread Jacob Lalonde via lldb-commits
@@ -7,27 +7,43 @@ //===--===// #include "lldb/Host/MainLoopBase.h" +#include using namespace lldb; using namespace lldb_private; -void MainLoopBase::AddPendingCallback(const Callback &callback) { +void

[Lldb-commits] [lldb] [lldb] Fix API test for file redirection to existing files (PR #114119)

2024-10-29 Thread Jacob Lalonde via lldb-commits
@@ -99,31 +99,45 @@ def test_stdout_stderr_redirection(self): @expectedFlakeyLinux(bugnumber="llvm.org/pr26437") @skipIfDarwinEmbedded # debugserver can't create/write files on the device def test_stdout_stderr_redirection_to_existing_files(self): -"""Exerc

[Lldb-commits] [lldb] [lldb] Fix API test for file redirection to existing files (PR #114119)

2024-10-29 Thread Jacob Lalonde via lldb-commits
@@ -99,31 +99,45 @@ def test_stdout_stderr_redirection(self): @expectedFlakeyLinux(bugnumber="llvm.org/pr26437") @skipIfDarwinEmbedded # debugserver can't create/write files on the device def test_stdout_stderr_redirection_to_existing_files(self): -"""Exerc

[Lldb-commits] [lldb] [lldb] Fix API test for file redirection to existing files (PR #114119)

2024-10-29 Thread Jacob Lalonde via lldb-commits
@@ -99,31 +99,45 @@ def test_stdout_stderr_redirection(self): @expectedFlakeyLinux(bugnumber="llvm.org/pr26437") @skipIfDarwinEmbedded # debugserver can't create/write files on the device def test_stdout_stderr_redirection_to_existing_files(self): -"""Exerc

[Lldb-commits] [lldb] [llvm] [lldb] Fix write only file action to truncate the file (PR #112657)

2024-10-29 Thread Jacob Lalonde via lldb-commits
@@ -6,6 +6,8 @@ // //===--===// +#include Jlalond wrote: It's also passing the Windows CI. @bulbazord I can help @kusmour validate if you want, but I personally think CI is good enough ht

[Lldb-commits] [lldb] [lldb] Add timed callbacks to the MainLoop class (PR #112895)

2024-10-18 Thread Jacob Lalonde via lldb-commits
https://github.com/Jlalond commented: A lot of this is over my head, but I left a few comments anyway. https://github.com/llvm/llvm-project/pull/112895 ___ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/lis

[Lldb-commits] [lldb] [lldb] Add timed callbacks to the MainLoop class (PR #112895)

2024-10-18 Thread Jacob Lalonde via lldb-commits
@@ -7,27 +7,43 @@ //===--===// #include "lldb/Host/MainLoopBase.h" +#include using namespace lldb; using namespace lldb_private; -void MainLoopBase::AddPendingCallback(const Callback &callback) { +void

[Lldb-commits] [lldb] [lldb] Add timed callbacks to the MainLoop class (PR #112895)

2024-10-18 Thread Jacob Lalonde via lldb-commits
@@ -155,7 +181,9 @@ Status MainLoopPosix::RunImpl::Poll() { void *sigset_ptr; size_t sigset_len; } extra_data = {&kernel_sigset, sizeof(kernel_sigset)}; - if (syscall(__NR_pselect6, nfds, &read_fd_set, nullptr, nullptr, nullptr, + if (syscall(__NR_pselect6, nfds, &r

[Lldb-commits] [lldb] [lldb] Add timed callbacks to the MainLoop class (PR #112895)

2024-10-18 Thread Jacob Lalonde via lldb-commits
@@ -7,27 +7,43 @@ //===--===// #include "lldb/Host/MainLoopBase.h" +#include using namespace lldb; using namespace lldb_private; -void MainLoopBase::AddPendingCallback(const Callback &callback) { +void

[Lldb-commits] [lldb] [lldb] Add timed callbacks to the MainLoop class (PR #112895)

2024-10-18 Thread Jacob Lalonde via lldb-commits
@@ -38,6 +40,9 @@ class MainLoopBase { class ReadHandle; public: + using TimePoint = std::chrono::time_pointhttps://github.com/llvm/llvm-project/pull/112895 ___ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.l

  1   2   3   4   5   >