[Lldb-commits] [lldb] [lldb] Add early CMake check for 'make' tool (PR #111531)

2024-10-08 Thread Jonas Devlieghere via lldb-commits
https://github.com/JDevlieghere commented: I like the idea of looking for Make at configuration time. However, I think if we go that route, we should pass make as an explicit argument to `dotest.py`: - We do for other tools that we find at configuration time (such as `dsymutil`). - It elimin

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

2024-10-08 Thread Jacob Lalonde via lldb-commits
https://github.com/Jlalond updated https://github.com/llvm/llvm-project/pull/109477 >From 73880b94c09f1a9a9233f80f7eb70b4f68cbf6aa Mon Sep 17 00:00:00 2001 From: Jacob Lalonde Date: Mon, 16 Sep 2024 13:02:59 -0700 Subject: [PATCH 01/13] Add Process code to get the fs_base region and the .tdata

[Lldb-commits] [lldb] Support inline diagnostics in CommandReturnObject (PR #110901)

2024-10-08 Thread via lldb-commits
@@ -3180,15 +3180,24 @@ void CommandInterpreter::IOHandlerInputComplete(IOHandler &io_handler, if ((result.Succeeded() && io_handler.GetFlags().Test(eHandleCommandFlagPrintResult)) || io_handler.GetFlags().Test(eHandleCommandFlagPrintErrors)) { -// Display a

[Lldb-commits] [lldb] Support inline diagnostics in CommandReturnObject (PR #110901)

2024-10-08 Thread via lldb-commits
jimingham wrote: You didn't introduce the situation where we have two separate "ExpressionResults -> String" API's in different places, but you did move one, so maybe it's time to put them together? I don't have a strong opinion where they should go, except together if possible... I'll still

[Lldb-commits] [lldb] Support inline diagnostics in CommandReturnObject (PR #110901)

2024-10-08 Thread via lldb-commits
@@ -0,0 +1,79 @@ +//===-- DiagnosticsRendering.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] Add SBDebugger:: AddNotificationCallback API (PR #111206)

2024-10-08 Thread via lldb-commits
@@ -138,7 +138,10 @@ class LLDB_API SBUnixSignals; typedef bool (*SBBreakpointHitCallback)(void *baton, lldb::SBProcess &process, lldb::SBThread &thread, lldb::SBBreakpointLocation &location); - +ty

[Lldb-commits] [lldb] Add SBDebugger:: AddNotificationCallback API (PR #111206)

2024-10-08 Thread via lldb-commits
@@ -569,6 +569,18 @@ class Debugger : public std::enable_shared_from_this, SetDestroyCallback(lldb_private::DebuggerDestroyCallback destroy_callback, void *baton); + /// Add a notification callback when notification type event happens. Return a --

[Lldb-commits] [lldb] Add SBDebugger:: AddNotificationCallback API (PR #111206)

2024-10-08 Thread via lldb-commits
@@ -569,6 +569,18 @@ class Debugger : public std::enable_shared_from_this, SetDestroyCallback(lldb_private::DebuggerDestroyCallback destroy_callback, void *baton); + /// Add a notification callback when notification type event happens. Return a + ///

[Lldb-commits] [lldb] Add SBDebugger:: AddNotificationCallback API (PR #111206)

2024-10-08 Thread via lldb-commits
@@ -1362,6 +1362,12 @@ enum Severity { eSeverityInfo, // Equivalent to Remark used in clang. }; +enum NotificationType { + eDebuggerWillBeCreated = (1 << 0), jimingham wrote: Yes, it's not useful to call this before the new Debugger is fully initialized.

[Lldb-commits] [lldb] [lldb] Add SBTypeStaticField to SBDefines (PR #111560)

2024-10-08 Thread Med Ismail Bennani via lldb-commits
https://github.com/medismailben approved this pull request. LGTM! https://github.com/llvm/llvm-project/pull/111560 ___ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

[Lldb-commits] [lldb] [lldb] Add early CMake check for 'make' tool (PR #111531)

2024-10-08 Thread Alex Langford via lldb-commits
bulbazord wrote: +1 to what Jonas said. Making `dotest.py` more explicit makes reproducing test behavior more reliable. :) https://github.com/llvm/llvm-project/pull/111531 ___ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.or

[Lldb-commits] [lldb] Add SBDebugger:: AddNotificationCallback API (PR #111206)

2024-10-08 Thread Greg Clayton via lldb-commits
@@ -1362,6 +1362,12 @@ enum Severity { eSeverityInfo, // Equivalent to Remark used in clang. }; +enum NotificationType { + eDebuggerWillBeCreated = (1 << 0), clayborg wrote: Should this be `eDebuggerWasCreated` to indicate that a debugger object was creat

[Lldb-commits] [lldb] Add SBDebugger:: AddNotificationCallback API (PR #111206)

2024-10-08 Thread Greg Clayton via lldb-commits
@@ -138,7 +138,10 @@ class LLDB_API SBUnixSignals; typedef bool (*SBBreakpointHitCallback)(void *baton, lldb::SBProcess &process, lldb::SBThread &thread, lldb::SBBreakpointLocation &location); - +ty

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

2024-10-08 Thread Jacob Lalonde via lldb-commits
https://github.com/Jlalond updated https://github.com/llvm/llvm-project/pull/109477 >From 73880b94c09f1a9a9233f80f7eb70b4f68cbf6aa Mon Sep 17 00:00:00 2001 From: Jacob Lalonde Date: Mon, 16 Sep 2024 13:02:59 -0700 Subject: [PATCH 01/14] Add Process code to get the fs_base region and the .tdata

[Lldb-commits] [lldb] [lldb] Improve unwinding for discontinuous functions (PR #111409)

2024-10-08 Thread Pavel Labath via lldb-commits
labath wrote: Thanks for the quick response, Jason. I think it's quite possible that you haven't run into this situation before, because the final representation depends on what tool was used to split the functions. Judging by the name (`cold.1`), I think you're using the llvm "hot-cold-split

[Lldb-commits] [lldb] [lldb] Fix and re-enable TestUseSourceCache.py (PR #111237)

2024-10-08 Thread Pavel Labath via lldb-commits
labath wrote: At least back when I was looking at this problem (5+ years ago), memory mapping was the key -- I was not able to delete the process if the file was mapped -- regardless of the open flags. That said, [this comment](https://github.com/llvm/llvm-project/blob/4d218caa7716743061e8d34d

[Lldb-commits] [libcxx] [lldb] [libc++][CI] Replace LLDB test targets with libc++ test category (PR #110856)

2024-10-08 Thread Michael Buch via lldb-commits
https://github.com/Michael137 closed https://github.com/llvm/llvm-project/pull/110856 ___ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

[Lldb-commits] [libcxx] [lldb] [libc++][CI] Replace LLDB test targets with libc++ test category (PR #110856)

2024-10-08 Thread LLVM Continuous Integration via lldb-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `sanitizer-aarch64-linux-fuzzer` running on `sanitizer-buildbot11` while building `libcxx` at step 2 "annotate". Full details are available at: https://lab.llvm.org/buildbot/#/builders/159/builds/7709 Here is the relevant pi

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

2024-10-08 Thread via lldb-commits
jeffreytan81 wrote: > > I think we can do better than save at memory region fidelity which is at > > least at page boundary if I am not wrong. > > > We can use type information to query and save the object's size without > > including hundreds of unrelated objects in the > > heap happen to be

[Lldb-commits] [lldb] [lldb] Fix and re-enable TestUseSourceCache.py (PR #111237)

2024-10-08 Thread Igor Kudrin via lldb-commits
igorkudrin wrote: > To make the test more representative, I suggeest replacing the `removeFile()` > method with the following: Thanks! I've updated the test as you suggested. https://github.com/llvm/llvm-project/pull/111237 ___ lldb-commits mailing l

[Lldb-commits] [lldb] [lldb] Fix and re-enable TestUseSourceCache.py (PR #111237)

2024-10-08 Thread Igor Kudrin via lldb-commits
https://github.com/igorkudrin updated https://github.com/llvm/llvm-project/pull/111237 >From 6756842b1c78ac6f41fa467f112aa7632f260582 Mon Sep 17 00:00:00 2001 From: Igor Kudrin Date: Fri, 4 Oct 2024 23:27:04 -0700 Subject: [PATCH 1/2] [lldb] Fix and re-enable TestUseSourceCache.py The decorato

[Lldb-commits] [lldb] [lldb] Fix and re-enable TestUseSourceCache.py (PR #111237)

2024-10-08 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 1809d0fa1c15b16ca94381d8be3ef70c4a83c36b...433f6efa4657494c9b9a5581f3fa2b5b2299ff24 lldb/

[Lldb-commits] [lldb] [llvm] [LLDB][Minidump] Add breakpoint stop reasons to the minidump. (PR #108448)

2024-10-08 Thread Jacob Lalonde via lldb-commits
@@ -273,8 +273,14 @@ void ProcessMinidump::RefreshStateAfterStop() { // No stop. return; } - - stop_info = StopInfo::CreateStopReasonWithSignal(*stop_thread, signo); + const char *description = nullptr; + if (exception_stream.ExceptionRecord

[Lldb-commits] [lldb] Support inline diagnostics in CommandReturnObject (PR #110901)

2024-10-08 Thread via lldb-commits
@@ -0,0 +1,79 @@ +//===-- DiagnosticsRendering.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][ProcessELFCore] Add Description to ProcessELFCore/ELFThread stop reasons (PR #110065)

2024-10-08 Thread Jacob Lalonde via lldb-commits
https://github.com/Jlalond updated https://github.com/llvm/llvm-project/pull/110065 >From 57e287fbd426306d2ebc3a39d8ed8e8b7309a79c Mon Sep 17 00:00:00 2001 From: Jacob Lalonde Date: Tue, 24 Sep 2024 17:42:49 -0700 Subject: [PATCH 01/13] Add the addr info when appropriate for NIX' crash signals

[Lldb-commits] [lldb] [llvm] [LLDB][Minidump] Add breakpoint stop reasons to the minidump. (PR #108448)

2024-10-08 Thread Jacob Lalonde via lldb-commits
https://github.com/Jlalond updated https://github.com/llvm/llvm-project/pull/108448 >From 7bdbce7ef2f60e819dea296ff8da832c1acbaef6 Mon Sep 17 00:00:00 2001 From: Jacob Lalonde Date: Thu, 12 Sep 2024 13:10:58 -0700 Subject: [PATCH 01/10] Create set for the stop reasons we collect, and add break

[Lldb-commits] [lldb] Add SBDebugger:: AddNotificationCallback API (PR #111206)

2024-10-08 Thread via lldb-commits
jimingham wrote: I couldn't see what the `original_callback` argument and ivar are for? They just seem to get copied around but not used? We should also add a command way to add these, but it doesn't make sense to do that for the debugger created and destroyed ones because the command interp

[Lldb-commits] [lldb] Add SBDebugger:: AddNotificationCallback API (PR #111206)

2024-10-08 Thread via lldb-commits
@@ -1362,6 +1362,12 @@ enum Severity { eSeverityInfo, // Equivalent to Remark used in clang. }; +enum NotificationType { jimingham wrote: Might be good to put a comment here saying (a) this is used for SBNotificationCallbacks and (b) this is where you shou

[Lldb-commits] [lldb] Add SBDebugger:: AddNotificationCallback API (PR #111206)

2024-10-08 Thread via lldb-commits
@@ -737,19 +752,35 @@ class Debugger : public std::enable_shared_from_this, lldb::TargetSP m_dummy_target_sp; Diagnostics::CallbackID m_diagnostics_callback_id; - std::mutex m_destroy_callback_mutex; - lldb::callback_token_t m_destroy_callback_next_token = 0; - struct

[Lldb-commits] [lldb] [lldb] Fix TestGlobalModuleCache.py for remote debugging (PR #111483)

2024-10-08 Thread Igor Kudrin via lldb-commits
https://github.com/igorkudrin updated https://github.com/llvm/llvm-project/pull/111483 >From bb594335d05a4c8cb2949556f5b338242a9b5280 Mon Sep 17 00:00:00 2001 From: Igor Kudrin Date: Mon, 7 Oct 2024 22:07:02 -0700 Subject: [PATCH 1/2] [lldb] Fix TestGlobalModuleCache.py for remote debugging `S

[Lldb-commits] [lldb] [lldb] Fix and re-enable TestUseSourceCache.py (PR #111237)

2024-10-08 Thread Pavel Labath via lldb-commits
labath wrote: > * I can append to the file from Python (mode="a") > > * I can delete the file from Python (what the current test is doing) > > * I cannot delete the file from File Explorer => says lldb.exe is using the > file > > * I cannot overwrite the file from Python (mode="w") > > * I c

[Lldb-commits] [lldb] [lldb] Fix TestGlobalModuleCache.py for remote debugging (PR #111483)

2024-10-08 Thread Igor Kudrin via lldb-commits
@@ -111,6 +111,8 @@ def do_test(self, one_target, one_debugger): else: if one_target: new_debugger = lldb.SBDebugger().Create() +if lldb.selected_platform is not None: +new_debugger.SetSelectedPlatform(lldb

[Lldb-commits] [lldb] [lldb] Fix TestGlobalModuleCache.py for remote debugging (PR #111483)

2024-10-08 Thread Igor Kudrin via lldb-commits
https://github.com/igorkudrin updated https://github.com/llvm/llvm-project/pull/111483 >From bb594335d05a4c8cb2949556f5b338242a9b5280 Mon Sep 17 00:00:00 2001 From: Igor Kudrin Date: Mon, 7 Oct 2024 22:07:02 -0700 Subject: [PATCH 1/2] [lldb] Fix TestGlobalModuleCache.py for remote debugging `S

[Lldb-commits] [lldb] ababa48 - [lldb] Add SBTypeStaticField to SBDefines (#111560)

2024-10-08 Thread via lldb-commits
Author: Chelsea Cassanova Date: 2024-10-08T10:12:01-07:00 New Revision: ababa483b2ff31357f8c504b1110e255a56ff762 URL: https://github.com/llvm/llvm-project/commit/ababa483b2ff31357f8c504b1110e255a56ff762 DIFF: https://github.com/llvm/llvm-project/commit/ababa483b2ff31357f8c504b1110e255a56ff762.d

[Lldb-commits] [lldb] [lldb] Add SBTypeStaticField to SBDefines (PR #111560)

2024-10-08 Thread Chelsea Cassanova via lldb-commits
https://github.com/chelcassanova closed https://github.com/llvm/llvm-project/pull/111560 ___ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

[Lldb-commits] [lldb] 6f2ebc4 - [lldb] Change SymbolContext::GetAddressRangeFromHereToEndLine to return Expected (NFC) (#110718)

2024-10-08 Thread via lldb-commits
Author: AbdAlRahman Gad Date: 2024-10-08T10:04:52-07:00 New Revision: 6f2ebc435f1cd8f121d227a52c76b6477cec8c91 URL: https://github.com/llvm/llvm-project/commit/6f2ebc435f1cd8f121d227a52c76b6477cec8c91 DIFF: https://github.com/llvm/llvm-project/commit/6f2ebc435f1cd8f121d227a52c76b6477cec8c91.dif

[Lldb-commits] [lldb] [lldb] Change SymbolContext::GetAddressRangeFromHereToEndLine to return Expected (NFC) (PR #110718)

2024-10-08 Thread Adrian Prantl via lldb-commits
https://github.com/adrian-prantl closed https://github.com/llvm/llvm-project/pull/110718 ___ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

[Lldb-commits] [lldb] [lldb] Change SymbolContext::GetAddressRangeFromHereToEndLine to return Expected (NFC) (PR #110718)

2024-10-08 Thread Adrian Prantl via lldb-commits
https://github.com/adrian-prantl approved this pull request. https://github.com/llvm/llvm-project/pull/110718 ___ 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 dead (PR #111601)

2024-10-08 Thread Jacob Lalonde via lldb-commits
Jlalond wrote: > I think we can do better than save at memory region fidelity which is at > least at page boundary if I am not wrong. > We can use type information to query and save the object's size without > including hundreds of unrelated objects in the > heap happen to be in the same page

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

2024-10-08 Thread Jacob Lalonde via lldb-commits
https://github.com/Jlalond edited 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][Minidump] Have Minidumps save off and properly read TLS data (PR #109477)

2024-10-08 Thread Jacob Lalonde via lldb-commits
@@ -6528,6 +6528,75 @@ static void AddRegion(const MemoryRegionInfo ®ion, bool try_dirty_pages, CreateCoreFileMemoryRange(region)); } +static void AddSegmentRegisterSections(Process &process, ThreadSP &thread_sp, Jlalond wrote: In the DYLD, d

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

2024-10-08 Thread Jacob Lalonde via lldb-commits
https://github.com/Jlalond updated https://github.com/llvm/llvm-project/pull/109477 >From 73880b94c09f1a9a9233f80f7eb70b4f68cbf6aa Mon Sep 17 00:00:00 2001 From: Jacob Lalonde Date: Mon, 16 Sep 2024 13:02:59 -0700 Subject: [PATCH 01/15] Add Process code to get the fs_base region and the .tdata

[Lldb-commits] [lldb] [lldb] Fix and re-enable TestUseSourceCache.py (PR #111237)

2024-10-08 Thread Igor Kudrin via lldb-commits
https://github.com/igorkudrin updated https://github.com/llvm/llvm-project/pull/111237 >From 6756842b1c78ac6f41fa467f112aa7632f260582 Mon Sep 17 00:00:00 2001 From: Igor Kudrin Date: Fri, 4 Oct 2024 23:27:04 -0700 Subject: [PATCH] [lldb] Fix and re-enable TestUseSourceCache.py The decorators c

[Lldb-commits] [lldb] [lldb][test] Enable TestDAP_runInTerminal on non-x86 architectures (PR #111543)

2024-10-08 Thread David Spickett via lldb-commits
https://github.com/DavidSpickett created https://github.com/llvm/llvm-project/pull/111543 I don't see an obvious reason it has to be x86 specific and local testing on Arm and AArch64 is fine. Originally disabled in 50337fb933e0f666d34d747a43d46840b3982bf7 in response to failures apparently ca

[Lldb-commits] [lldb] [lldb][test] Enable TestDAP_runInTerminal on non-x86 architectures (PR #111543)

2024-10-08 Thread David Spickett via lldb-commits
DavidSpickett wrote: Noticed this looking at a failure from https://github.com/llvm/llvm-project/pull/106919, which I think was unrelated. If this lands and our bot blows up I'll just revert this. https://github.com/llvm/llvm-project/pull/111543 ___

[Lldb-commits] [lldb] [lldb][test] Enable TestDAP_runInTerminal on non-x86 architectures (PR #111543)

2024-10-08 Thread via lldb-commits
llvmbot wrote: @llvm/pr-subscribers-lldb Author: David Spickett (DavidSpickett) Changes I don't see an obvious reason it has to be x86 specific and local testing on Arm and AArch64 is fine. Originally disabled in 50337fb933e0f666d34d747a43d46840b3982bf7 in response to failures apparentl

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

2024-10-08 Thread Pavel Labath via lldb-commits
https://github.com/labath commented: It's not clear to me what's up with the idea of moving the saving code to the dynamic loader plugin. Is that something you plan to work on? The main thing that bothers me is the `AddLinkMapSections` function. Although it superficially generic, it uses the `

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

2024-10-08 Thread Pavel Labath via lldb-commits
@@ -462,7 +475,6 @@ ModuleSP ProcessMinidump::GetOrCreateModule(UUID minidump_uuid, void ProcessMinidump::ReadModuleList() { std::vector filtered_modules = m_minidump_parser->GetFilteredModuleList(); - labath wrote: please revert random whitespace cha

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

2024-10-08 Thread Pavel Labath via lldb-commits
https://github.com/labath edited https://github.com/llvm/llvm-project/pull/109477 ___ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

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

2024-10-08 Thread Pavel Labath via lldb-commits
@@ -6528,6 +6528,75 @@ static void AddRegion(const MemoryRegionInfo ®ion, bool try_dirty_pages, CreateCoreFileMemoryRange(region)); } +static void AddSegmentRegisterSections(Process &process, ThreadSP &thread_sp, labath wrote: This name is ve

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

2024-10-08 Thread Pavel Labath via lldb-commits
@@ -333,6 +336,16 @@ ArchSpec ProcessMinidump::GetArchitecture() { return ArchSpec(triple); } +DataExtractor ProcessMinidump::GetAuxvData() { + std::optional> auxv = + m_minidump_parser->GetStream(StreamType::LinuxAuxv); + if (!auxv) +return DataExtractor(); + +

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

2024-10-08 Thread Pavel Labath via lldb-commits
@@ -83,7 +83,11 @@ ModuleSP DynamicLoader::GetTargetExecutable() { ModuleSpec module_spec(executable->GetFileSpec(), executable->GetArchitecture()); auto module_sp = std::make_shared(module_spec); - + // If we're a coredump and we a

[Lldb-commits] [lldb] 7c10876 - [lldb][test] Fix unexpected pass of TestBSDArchives on Windows

2024-10-08 Thread David Spickett via lldb-commits
Author: David Spickett Date: 2024-10-08T08:56:21Z New Revision: 7c1087613bb9f4ceebb991e5a4b2ef4d5adb4dfa URL: https://github.com/llvm/llvm-project/commit/7c1087613bb9f4ceebb991e5a4b2ef4d5adb4dfa DIFF: https://github.com/llvm/llvm-project/commit/7c1087613bb9f4ceebb991e5a4b2ef4d5adb4dfa.diff LOG

[Lldb-commits] [lldb] ec00999 - [lldb][test] Remove xfails from static lib tests on Windows

2024-10-08 Thread David Spickett via lldb-commits
Author: David Spickett Date: 2024-10-08T08:58:43Z New Revision: ec009994a06338995dfb6431c943b299f9327fd2 URL: https://github.com/llvm/llvm-project/commit/ec009994a06338995dfb6431c943b299f9327fd2 DIFF: https://github.com/llvm/llvm-project/commit/ec009994a06338995dfb6431c943b299f9327fd2.diff LOG

[Lldb-commits] [lldb] [lldb][test] Provide proper path to LLVM utils in API tests (PR #110837)

2024-10-08 Thread Vladislav Dzhidzhoev via lldb-commits
dzhidzhoev wrote: @DavidSpickett thank you for the fixes! https://github.com/llvm/llvm-project/pull/110837 ___ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

[Lldb-commits] [lldb] [lldb] Add early CMake check for 'make' tool (PR #111531)

2024-10-08 Thread via lldb-commits
llvmbot wrote: @llvm/pr-subscribers-lldb Author: Stefan Gränitz (weliveindetail) Changes Around 400 of LLDB's dotest.py based tests require the `make` tool to be found in Path. If it's not found, they fail with an obscure error and show up as `UNRESOLVED`. llvm-lit takes care of MSYS bas

[Lldb-commits] [lldb] [lldb] Add early CMake check for 'make' tool (PR #111531)

2024-10-08 Thread Stefan Gränitz via lldb-commits
https://github.com/weliveindetail created https://github.com/llvm/llvm-project/pull/111531 Around 400 of LLDB's dotest.py based tests require the `make` tool to be found in Path. If it's not found, they fail with an obscure error and show up as `UNRESOLVED`. llvm-lit takes care of MSYS based t

[Lldb-commits] [lldb] 98c9c1a - [lldb][test] Disable new lldb-dap test on non-x86

2024-10-08 Thread David Spickett via lldb-commits
Author: David Spickett Date: 2024-10-08T14:29:08Z New Revision: 98c9c1a4d2d4fc41b34f73e4630de435c9c0c396 URL: https://github.com/llvm/llvm-project/commit/98c9c1a4d2d4fc41b34f73e4630de435c9c0c396 DIFF: https://github.com/llvm/llvm-project/commit/98c9c1a4d2d4fc41b34f73e4630de435c9c0c396.diff LOG

[Lldb-commits] [lldb] Make env and source map dictionaries #95137 (PR #106919)

2024-10-08 Thread David Spickett via lldb-commits
DavidSpickett wrote: I suspect a missing unsupported annotation: ``` UNSUPPORTED: LLDB (/home/tcwg-buildbot/worker/lldb-arm-ubuntu/build/bin/clang-arm) :: test_FakeAttachedRunInTerminalLauncherAndCheckEnvironment (TestDAP_runInTerminal.TestDAP_runInTerminal) (skipping due to the following par

[Lldb-commits] [lldb] Make env and source map dictionaries #95137 (PR #106919)

2024-10-08 Thread antoine moynault via lldb-commits
antmox wrote: Hi! Looks like this patch broke lldb-arm-ubuntu bot : https://lab.llvm.org/buildbot/#/builders/18/builds/5041 > Failed Tests (1): > lldb-api :: tools/lldb-dap/runInTerminal/TestDAP_runInTerminal.py Could you please look at this ? https://github.com/llvm/llvm-project/pull/106919

[Lldb-commits] [lldb] Add SBDebugger::AddCreateCallback API (PR #111206)

2024-10-08 Thread Pavel Labath via lldb-commits
labath wrote: Hello all, I'm parachuting in here because we also have a use case that might benefit from something like this. In our case, we want to run some actions (set up data formatters, source paths, etc.) if we find that we're working with a certain kind of binary (which contains infor

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

2024-10-08 Thread Jacob Lalonde via lldb-commits
@@ -83,7 +83,11 @@ ModuleSP DynamicLoader::GetTargetExecutable() { ModuleSpec module_spec(executable->GetFileSpec(), executable->GetArchitecture()); auto module_sp = std::make_shared(module_spec); - + // If we're a coredump and we a

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

2024-10-08 Thread Jacob Lalonde via lldb-commits
Jlalond wrote: > The main thing that bothers me is the AddLinkMapSections function. Although > it superficially generic, it uses the GetImageInfoAddress, which is only > implemented by ObjectFileELF, and only called from the elf-core and > posix-dyld plugins (i.e. code which already knows its

[Lldb-commits] [lldb] c80f484 - [lldb][NFC] Fix a build failure with MSVC (#111231)

2024-10-08 Thread via lldb-commits
Author: Igor Kudrin Date: 2024-10-08T17:46:02-07:00 New Revision: c80f48491b150197d758f0906011b44472fa2dd5 URL: https://github.com/llvm/llvm-project/commit/c80f48491b150197d758f0906011b44472fa2dd5 DIFF: https://github.com/llvm/llvm-project/commit/c80f48491b150197d758f0906011b44472fa2dd5.diff L

[Lldb-commits] [lldb] [lldb][NFC] Fix a build failure with MSVC (PR #111231)

2024-10-08 Thread Igor Kudrin via lldb-commits
https://github.com/igorkudrin closed https://github.com/llvm/llvm-project/pull/111231 ___ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

[Lldb-commits] [lldb] [lldb] Fix and re-enable TestUseSourceCache.py (PR #111237)

2024-10-08 Thread Emre Kultursay via lldb-commits
emrekultursay wrote: OK, I figured the problem. In the test, we call `os.removeFile()` which does not actually represent the real end-user use-case (which is to edit the file and save it). Empirically, on Windows 11, I can verify that when LLDB mmaps these large files, then: 1. I can appen

[Lldb-commits] [lldb] [lldb-dap] Implement value locations for function pointers (PR #104589)

2024-10-08 Thread Adrian Vogelsgesang via lldb-commits
vogelsgesang wrote: friendly ping, @walter-erquinigo @clayborg https://github.com/llvm/llvm-project/pull/104589 ___ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

[Lldb-commits] [lldb] Add SBDebugger::AddCreateCallback API (PR #111206)

2024-10-08 Thread via lldb-commits
jimingham wrote: > On Oct 8, 2024, at 2:16 AM, Pavel Labath ***@***.***> wrote: > > > Hello all, > > I'm parachuting in here because we also have a use case that might benefit > from something like this. In our case, we want to run some actions (set up > data formatters, source paths, etc.

[Lldb-commits] [lldb] Add SBDebugger::AddCreateCallback API (PR #111206)

2024-10-08 Thread via lldb-commits
jimingham wrote: > On Oct 8, 2024, at 9:53 AM, Jim Ingham ***@***.***> wrote: > >> >> >> >>> On Oct 8, 2024, at 2:16 AM, Pavel Labath ***@***.***> wrote: >>> >>> >>> Hello all, >>> >>> I'm parachuting in here because we also have a use case that might benefit >>> from something like thi

[Lldb-commits] [clang] [clang-tools-extra] [flang] [lld] [lldb] [llvm] [NFC] Rename Option parsing related files from OptXYZ -> OptionXYZ (PR #110692)

2024-10-08 Thread Rahul Joshi via lldb-commits
jurahul wrote: Sounds good. thanks. https://github.com/llvm/llvm-project/pull/110692 ___ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

[Lldb-commits] [clang] [clang-tools-extra] [flang] [lld] [lldb] [llvm] [NFC] Rename Option parsing related files from OptXYZ -> OptionXYZ (PR #110692)

2024-10-08 Thread Rahul Joshi via lldb-commits
https://github.com/jurahul closed https://github.com/llvm/llvm-project/pull/110692 ___ 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 dead (PR #111601)

2024-10-08 Thread Jacob Lalonde via lldb-commits
https://github.com/Jlalond created https://github.com/llvm/llvm-project/pull/111601 This adds an extension to allow the saving of a Thread and it's pointers N layers deep via BFS. This lets SBSaveCore 'automagically' figure out everything important for a given thread to save on your behalf. >

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

2024-10-08 Thread Jacob Lalonde via lldb-commits
https://github.com/Jlalond updated https://github.com/llvm/llvm-project/pull/111601 >From b128131f457a013102b2a0b2fcb968956d980076 Mon Sep 17 00:00:00 2001 From: Jacob Lalonde Date: Tue, 8 Oct 2024 15:52:45 -0700 Subject: [PATCH 1/2] Create new extension for save core to save a thread and N po

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

2024-10-08 Thread via lldb-commits
llvmbot wrote: @llvm/pr-subscribers-lldb Author: Jacob Lalonde (Jlalond) Changes This adds an extension to allow the saving of a Thread and it's pointers N layers deep via BFS. This lets SBSaveCore 'automagically' figure out everything important for a given thread to save on your behalf.

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

2024-10-08 Thread via lldb-commits
@@ -0,0 +1,31 @@ +#extend lldb::SBSaveCoreOptions { +#ifdef SWIGPYTHON +%pythoncode% { +'''Add a thread to the SaveCoreOptions thread list, and follow it's children N pointers deep, adding each memory region to the SaveCoreOptions Memory region list.''' -

[Lldb-commits] [lldb] [lldb][test] Enable TestDAP_runInTerminal on non-x86 architectures (PR #111543)

2024-10-08 Thread Walter Erquinigo via lldb-commits
https://github.com/walter-erquinigo approved this pull request. Thanks! https://github.com/llvm/llvm-project/pull/111543 ___ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

[Lldb-commits] [lldb] [lldb] Add SBTypeStaticField to SBDefines (PR #111560)

2024-10-08 Thread Chelsea Cassanova via lldb-commits
https://github.com/chelcassanova created https://github.com/llvm/llvm-project/pull/111560 SBTypeStaticField was missing from SBDefines, this commit adds the class there. >From db7d2f7cc126e348e7c524f19196fca42a6142c9 Mon Sep 17 00:00:00 2001 From: Chelsea Cassanova Date: Tue, 8 Oct 2024 10:01:

[Lldb-commits] [lldb] [lldb] Add SBTypeStaticField to SBDefines (PR #111560)

2024-10-08 Thread via lldb-commits
llvmbot wrote: @llvm/pr-subscribers-lldb Author: Chelsea Cassanova (chelcassanova) Changes SBTypeStaticField was missing from SBDefines, this commit adds the class there. --- Full diff: https://github.com/llvm/llvm-project/pull/111560.diff 1 Files Affected: - (modified) lldb/include/ll

[Lldb-commits] [lldb] Add SBDebugger:: AddNotificationCallback API (PR #111206)

2024-10-08 Thread via lldb-commits
https://github.com/jeffreytan81 edited https://github.com/llvm/llvm-project/pull/111206 ___ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

[Lldb-commits] [lldb] Add SBDebugger::AddCreateCallback API (PR #111206)

2024-10-08 Thread via lldb-commits
jeffreytan81 wrote: The PR is revised based on feedback. In this PR, it supports `eDebuggerWillBeCreated` and `eDebuggerWillBeDestroyed` notifications. We can add more in future. The callback is only called if the type filtering matches (for example, the client asks for `eDebuggerWillBeCreated

[Lldb-commits] [lldb] Add SBDebugger::AddCreateCallback API (PR #111206)

2024-10-08 Thread via lldb-commits
https://github.com/jeffreytan81 updated https://github.com/llvm/llvm-project/pull/111206 >From 6e84ab9a14e63c58e1facdbf9a695c093882b37b Mon Sep 17 00:00:00 2001 From: jeffreytan81 Date: Mon, 19 Aug 2024 10:57:35 -0700 Subject: [PATCH 1/2] Fix StartDebuggingRequestHandler/ReplModeRequestHandler

[Lldb-commits] [lldb] Add SBDebugger::AddCreateCallback API (PR #111206)

2024-10-08 Thread via lldb-commits
https://github.com/jeffreytan81 updated https://github.com/llvm/llvm-project/pull/111206 >From 6e84ab9a14e63c58e1facdbf9a695c093882b37b Mon Sep 17 00:00:00 2001 From: jeffreytan81 Date: Mon, 19 Aug 2024 10:57:35 -0700 Subject: [PATCH 1/2] Fix StartDebuggingRequestHandler/ReplModeRequestHandler

[Lldb-commits] [lldb] Add SBDebugger::AddCreateCallback API (PR #111206)

2024-10-08 Thread via lldb-commits
https://github.com/jeffreytan81 edited https://github.com/llvm/llvm-project/pull/111206 ___ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

[Lldb-commits] [lldb] Support inline diagnostics in CommandReturnObject (PR #110901)

2024-10-08 Thread via lldb-commits
@@ -0,0 +1,79 @@ +//===-- DiagnosticsRendering.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] Change SymbolContext::GetAddressRangeFromHereToEndLine to return Expected (NFC) (PR #110718)

2024-10-08 Thread via lldb-commits
github-actions[bot] wrote: @AbdAlRahmanGad Congratulations on having your first Pull Request (PR) merged into the LLVM Project! Your changes will be combined with recent changes from other authors, then tested by our [build bots](https://lab.llvm.org/buildbot/). If there is a problem with a

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

2024-10-08 Thread via lldb-commits
@@ -470,6 +471,27 @@ def save_core_with_region(self, process, region_index): if os.path.isfile(custom_file): os.unlink(custom_file) +def save_core_one_thread_one_heap(self, process, region_index): jeffreytan81 wrote: Who is inv

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

2024-10-08 Thread via lldb-commits
@@ -0,0 +1,31 @@ +#extend lldb::SBSaveCoreOptions { +#ifdef SWIGPYTHON +%pythoncode% { +'''Add a thread to the SaveCoreOptions thread list, and follow it's children N pointers deep, adding each memory region to the SaveCoreOptions Memory region list.''' +def

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

2024-10-08 Thread via lldb-commits
@@ -0,0 +1,31 @@ +#extend lldb::SBSaveCoreOptions { +#ifdef SWIGPYTHON +%pythoncode% { +'''Add a thread to the SaveCoreOptions thread list, and follow it's children N pointers deep, adding each memory region to the SaveCoreOptions Memory region list.''' +def

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

2024-10-08 Thread via lldb-commits
https://github.com/jeffreytan81 requested changes to this pull request. I think we can do better than save at memory region fidelity which is at least at page boundary if I am not wrong. We can use type information to query and save the object's size without including hundreds of unrelated ob

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

2024-10-08 Thread via lldb-commits
https://github.com/jeffreytan81 edited 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][SBSaveCore] Add Extension to Save a thread and N pointers dead (PR #111601)

2024-10-08 Thread via lldb-commits
@@ -0,0 +1,31 @@ +#extend lldb::SBSaveCoreOptions { +#ifdef SWIGPYTHON +%pythoncode% { +'''Add a thread to the SaveCoreOptions thread list, and follow it's children N pointers deep, adding each memory region to the SaveCoreOptions Memory region list.''' +def

[Lldb-commits] [lldb] [lldb] Improve unwinding for discontinuous functions (PR #111409)

2024-10-08 Thread Jason Molenda via lldb-commits
https://github.com/jasonmolenda approved this pull request. Thanks for the background here, I can see what a problem a function with discontiguous ranges can be for some of our data structures. Looking at the assembly in your test case (which is going to be really helpful if we try to tackle

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

2024-10-08 Thread Jacob Lalonde via lldb-commits
@@ -0,0 +1,31 @@ +#extend lldb::SBSaveCoreOptions { +#ifdef SWIGPYTHON +%pythoncode% { +'''Add a thread to the SaveCoreOptions thread list, and follow it's children N pointers deep, adding each memory region to the SaveCoreOptions Memory region list.''' +def

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

2024-10-08 Thread Jacob Lalonde via lldb-commits
@@ -0,0 +1,31 @@ +#extend lldb::SBSaveCoreOptions { +#ifdef SWIGPYTHON +%pythoncode% { +'''Add a thread to the SaveCoreOptions thread list, and follow it's children N pointers deep, adding each memory region to the SaveCoreOptions Memory region list.''' +def

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

2024-10-08 Thread Jacob Lalonde via lldb-commits
@@ -0,0 +1,31 @@ +#extend lldb::SBSaveCoreOptions { +#ifdef SWIGPYTHON +%pythoncode% { +'''Add a thread to the SaveCoreOptions thread list, and follow it's children N pointers deep, adding each memory region to the SaveCoreOptions Memory region list.''' +def

[Lldb-commits] [clang] [clang-tools-extra] [flang] [lld] [lldb] [llvm] [NFC] Rename Option parsing related files from OptXYZ -> OptionXYZ (PR #110692)

2024-10-08 Thread David Blaikie via lldb-commits
dwblaikie wrote: Yeah, I think given how wide the change is and the speculative nature of the harm - probably best to abandon this for now. We can pick it up again if more folks speak up/more evidence is presented that it's problematic. https://github.com/llvm/llvm-project/pull/110692

[Lldb-commits] [lldb] [lldb-dap] Implement value locations for function pointers (PR #104589)

2024-10-08 Thread Walter Erquinigo via lldb-commits
https://github.com/walter-erquinigo approved this pull request. https://github.com/llvm/llvm-project/pull/104589 ___ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

[Lldb-commits] [lldb] DynamicLoaderDarwin load images in parallel (PR #110439)

2024-10-08 Thread Dmitrii Galimzianov via lldb-commits
DmT021 wrote: > Was the setting intended for testing purposes only, or did you intend to > include that in a final PR? The latter. IMO the risks involved by parallelization are a bit too high to do it without a flag. I'm even thinking about having it opt-in rather than opt-out for some time.

[Lldb-commits] [lldb] 39cdfdf - [lldb][test] Fix typo in TestSharedLibStrippedSymbols

2024-10-08 Thread David Spickett via lldb-commits
Author: David Spickett Date: 2024-10-08T09:36:56Z New Revision: 39cdfdfad961e146131966757d563bfd667246d6 URL: https://github.com/llvm/llvm-project/commit/39cdfdfad961e146131966757d563bfd667246d6 DIFF: https://github.com/llvm/llvm-project/commit/39cdfdfad961e146131966757d563bfd667246d6.diff LOG