[Lldb-commits] [lldb] [lldb-dap] Re-enable the lldb-dap tests (PR #138791)

2025-05-08 Thread Jonas Devlieghere via lldb-commits
JDevlieghere wrote: Attaching the bot output before it gets recycled: [stdio-3.txt](https://github.com/user-attachments/files/20111424/stdio-3.txt) https://github.com/llvm/llvm-project/pull/138791 ___ lldb-commits mailing list lldb-commits@lists.llvm

[Lldb-commits] [lldb] Branch island debug (PR #139166)

2025-05-08 Thread via lldb-commits
https://github.com/jimingham created https://github.com/llvm/llvm-project/pull/139166 This patch allows lldb to step in across "branch islands" which is the Darwin linker's way of dealing with immediate branches to targets that are too far away for the immediate slot to make the jump. I submi

[Lldb-commits] [lldb] 0389640 - [lldb-dap] Migrate attach to typed RequestHandler. (#137911)

2025-05-08 Thread via lldb-commits
Author: John Harrison Date: 2025-05-08T14:12:49-07:00 New Revision: 03896403d3bf330c8163aa9ae3fe2aa284e273be URL: https://github.com/llvm/llvm-project/commit/03896403d3bf330c8163aa9ae3fe2aa284e273be DIFF: https://github.com/llvm/llvm-project/commit/03896403d3bf330c8163aa9ae3fe2aa284e273be.diff

[Lldb-commits] [lldb] [lldb-dap] Adding a modules explorer to lldb-dap ext. (PR #138977)

2025-05-08 Thread Felipe de Azevedo Piovezan via lldb-commits
felipepiovezan wrote: It may be a coincidence, but a DAP test failed in green dragon right after this patch was applied: https://ci.swift.org/view/all/job/llvm.org/job/as-lldb-cmake/25465/console TestDAP_repl_mode_detection.py DAP tasks have been flaky though, so maybe unrelated, I don't full

[Lldb-commits] [lldb] [lldb][lldb-dap] Migrate ScopesRequest to structured types (PR #138116)

2025-05-08 Thread John Harrison via lldb-commits
@@ -302,6 +302,74 @@ struct Source { // unsupported keys: origin, sources, adapterData, checksums }; bool fromJSON(const llvm::json::Value &, Source &, llvm::json::Path); +llvm::json::Value toJSON(const Source &); + +/// A `Scope` is a named container for variables. Optionall

[Lldb-commits] [lldb] [lldb][lldb-dap] Migrate ScopesRequest to structured types (PR #138116)

2025-05-08 Thread John Harrison via lldb-commits
@@ -302,6 +302,74 @@ struct Source { // unsupported keys: origin, sources, adapterData, checksums }; bool fromJSON(const llvm::json::Value &, Source &, llvm::json::Path); +llvm::json::Value toJSON(const Source &); + +/// A `Scope` is a named container for variables. Optionall

[Lldb-commits] [lldb] [lldb] Don't create instance of `SymbolFileDWARFDebugMap` for non-Mach-O files (PR #139170)

2025-05-08 Thread Jonas Devlieghere via lldb-commits
https://github.com/JDevlieghere requested changes to this pull request. Plugins shouldn't depend on each other. The correct way to do this would be to have a method in ObjectFile, something like `ObjectFile::SupportsDebugMap()` which returns false for all implementations except the `ObjectFileM

[Lldb-commits] [lldb] [lldb][lldb-dap] Migrate ScopesRequest to structured types (PR #138116)

2025-05-08 Thread John Harrison via lldb-commits
@@ -98,9 +83,15 @@ void ScopesRequestHandler::operator()(const llvm::json::Object &request) const { /*statics=*/true, /*in_scope_only=*/true); dap.variables.registers = frame.GetRegiste

[Lldb-commits] [lldb] [lldb][lldb-dap] Migrate ScopesRequest to structured types (PR #138116)

2025-05-08 Thread John Harrison via lldb-commits
@@ -294,6 +294,19 @@ bool fromJSON(const llvm::json::Value &, LaunchRequestArguments &, /// field is required. using LaunchResponseBody = VoidResponse; +struct ScopesArguments { + /// Retrieve the scopes for the stack frame identified by `frameId`. The + /// `frameId` must

[Lldb-commits] [lldb] [lldb][lldb-dap] Migrate ScopesRequest to structured types (PR #138116)

2025-05-08 Thread John Harrison via lldb-commits
@@ -275,9 +275,7 @@ struct DAP { lldb::SBThread GetLLDBThread(lldb::tid_t id); lldb::SBThread GetLLDBThread(const llvm::json::Object &arguments); - lldb::SBFrame GetLLDBFrame(const llvm::json::Object &arguments); ashgti wrote: We may want to leave this h

[Lldb-commits] [lldb] [lldb-dap] Move the event and progress event threads into DAP (NFC) (PR #139167)

2025-05-08 Thread John Harrison via lldb-commits
https://github.com/ashgti approved this pull request. Makes sense to me https://github.com/llvm/llvm-project/pull/139167 ___ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

[Lldb-commits] [lldb] [lldb] Don't create instance of `SymbolFileDWARFDebugMap` for non-Mach-O files (PR #139170)

2025-05-08 Thread Adrian Prantl via lldb-commits
@@ -246,6 +247,8 @@ llvm::StringRef SymbolFileDWARFDebugMap::GetPluginDescriptionStatic() { } SymbolFile *SymbolFileDWARFDebugMap::CreateInstance(ObjectFileSP objfile_sp) { + if (objfile_sp->GetPluginName() != ObjectFileMachO::GetPluginNameStatic()) +return nullptr;

[Lldb-commits] [lldb] 6bb3019 - Branch island debug (#139166)

2025-05-08 Thread via lldb-commits
Author: jimingham Date: 2025-05-08T16:22:39-07:00 New Revision: 6bb30196912daeaa92babc39519b2ae0bfce9771 URL: https://github.com/llvm/llvm-project/commit/6bb30196912daeaa92babc39519b2ae0bfce9771 DIFF: https://github.com/llvm/llvm-project/commit/6bb30196912daeaa92babc39519b2ae0bfce9771.diff LOG

[Lldb-commits] [lldb] Branch island debug (PR #139166)

2025-05-08 Thread via lldb-commits
https://github.com/jimingham closed https://github.com/llvm/llvm-project/pull/139166 ___ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

[Lldb-commits] [lldb] [lldb-dap] Adding a modules explorer to lldb-dap ext. (PR #138977)

2025-05-08 Thread John Harrison via lldb-commits
ashgti wrote: The failure seems to be that `stackTrace` returned an empty list: ``` 15:36:48 1746743807.491051912 --> (stdin/stdout) {"command":"stackTrace","type":"request","arguments":{"threadId":1744343,"startFrame":0,"levels":1},"seq":13} 15:36:48 1746743807.491221905 <-- (stdin/stdout)

[Lldb-commits] [lldb] Branch no lld (PR #139187)

2025-05-08 Thread via lldb-commits
https://github.com/jimingham closed https://github.com/llvm/llvm-project/pull/139187 ___ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

[Lldb-commits] [lldb] Branch no lld (PR #139187)

2025-05-08 Thread via lldb-commits
https://github.com/jimingham created https://github.com/llvm/llvm-project/pull/139187 I suspect the test may be failing because lld doesn't behave the same way the native Darwin linker does. Trying that theory here... >From 3198c53fbf642694fde0a99a29ad779208ea8b08 Mon Sep 17 00:00:00 2001 Fro

[Lldb-commits] [lldb] Branch no lld (PR #139187)

2025-05-08 Thread via lldb-commits
llvmbot wrote: @llvm/pr-subscribers-lldb Author: None (jimingham) Changes I suspect the test may be failing because lld doesn't behave the same way the native Darwin linker does. Trying that theory here... --- Full diff: https://github.com/llvm/llvm-project/pull/139187.diff 3 Files Af

[Lldb-commits] [lldb] b80c3c5 - Branch no lld (#139187)

2025-05-08 Thread via lldb-commits
Author: jimingham Date: 2025-05-08T18:00:52-07:00 New Revision: b80c3c576f169326f55956985706816cf7b170eb URL: https://github.com/llvm/llvm-project/commit/b80c3c576f169326f55956985706816cf7b170eb DIFF: https://github.com/llvm/llvm-project/commit/b80c3c576f169326f55956985706816cf7b170eb.diff LOG

[Lldb-commits] [lldb] Branch island debug (PR #139166)

2025-05-08 Thread Felipe de Azevedo Piovezan via lldb-commits
https://github.com/felipepiovezan approved this pull request. Fingers crossed this will give us enough info! https://github.com/llvm/llvm-project/pull/139166 ___ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailm

[Lldb-commits] [lldb] [lldb] Don't create instance of `SymbolFileDWARFDebugMap` for non-Mach-O files (PR #139170)

2025-05-08 Thread Alex Langford via lldb-commits
bulbazord wrote: +1 to Jonas's comment. Plugins ideally don't depend on each other and they should strive to fail gracefully if they depend on a specific plugin instance that's not available. I recognize that many plugins depend on each other today, but I don't think we should be adding more d

[Lldb-commits] [lldb] Add more logging so I can figure out why TestBranchIslands.py is (PR #139178)

2025-05-08 Thread via lldb-commits
https://github.com/jimingham created https://github.com/llvm/llvm-project/pull/139178 failing but only on the bot. >From 3198c53fbf642694fde0a99a29ad779208ea8b08 Mon Sep 17 00:00:00 2001 From: Jim Ingham Date: Thu, 8 May 2025 16:59:10 -0700 Subject: [PATCH] Add more logging so I can figure out

[Lldb-commits] [lldb] Add more logging so I can figure out why TestBranchIslands.py is (PR #139178)

2025-05-08 Thread via lldb-commits
llvmbot wrote: @llvm/pr-subscribers-lldb Author: None (jimingham) Changes failing but only on the bot. --- Full diff: https://github.com/llvm/llvm-project/pull/139178.diff 2 Files Affected: - (modified) lldb/source/Plugins/DynamicLoader/MacOSX-DYLD/DynamicLoaderDarwin.cpp (+9) - (mod

[Lldb-commits] [lldb] b6922b7 - Add more logging so I can figure out why TestBranchIslands.py is (#139178)

2025-05-08 Thread via lldb-commits
Author: jimingham Date: 2025-05-08T17:03:21-07:00 New Revision: b6922b717045d3d1bd136b96f672533a498fd5aa URL: https://github.com/llvm/llvm-project/commit/b6922b717045d3d1bd136b96f672533a498fd5aa DIFF: https://github.com/llvm/llvm-project/commit/b6922b717045d3d1bd136b96f672533a498fd5aa.diff LOG

[Lldb-commits] [lldb] Add more logging so I can figure out why TestBranchIslands.py is (PR #139178)

2025-05-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 HEAD~1...HEAD lldb/test/API/macosx/branch-islands/TestBranchIslands.py `` Vie

[Lldb-commits] [lldb] Add more logging so I can figure out why TestBranchIslands.py is (PR #139178)

2025-05-08 Thread via lldb-commits
github-actions[bot] wrote: :warning: C/C++ code formatter, clang-format found issues in your code. :warning: You can test this locally with the following command: ``bash git-clang-format --diff HEAD~1 HEAD --extensions cpp -- lldb/source/Plugins/DynamicLoader/MacOSX-DYLD/Dynamic

[Lldb-commits] [lldb] [lldb][core] Fix getting summary of a variable pointing to r/o memory (PR #139196)

2025-05-08 Thread Igor Kudrin via lldb-commits
https://github.com/igorkudrin created https://github.com/llvm/llvm-project/pull/139196 Motivation example: ``` > lldb -c altmain2.core ... (lldb) var F (const char *) F = 0x0804a000 "" ``` The variable `F` points to a read-only memory page not dumped to the core file, so `Process::ReadMemory(

[Lldb-commits] [lldb] [lldb][NFC] Avoid an assertion failure in dwim-print (PR #139197)

2025-05-08 Thread Igor Kudrin via lldb-commits
https://github.com/igorkudrin created https://github.com/llvm/llvm-project/pull/139197 In a Debug build on Windows, printing inline diagnostics resulted in an error, for example: ``` > cd llvm-project\lldb\test\API\functionalities\postmortem\elf-core > lldb.exe -c altmain.core > p dummy LLDB d

[Lldb-commits] [lldb] [lldb][core] Fix getting summary of a variable pointing to r/o memory (PR #139196)

2025-05-08 Thread via lldb-commits
llvmbot wrote: @llvm/pr-subscribers-lldb Author: Igor Kudrin (igorkudrin) Changes Motivation example: ``` > lldb -c altmain2.core ... (lldb) var F (const char *) F = 0x0804a000 "" ``` The variable `F` points to a read-only memory page not dumped to the core file, so `Process::ReadMemory

[Lldb-commits] [lldb] [lldb][NFC] Avoid an assertion failure in dwim-print (PR #139197)

2025-05-08 Thread via lldb-commits
llvmbot wrote: @llvm/pr-subscribers-lldb Author: Igor Kudrin (igorkudrin) Changes In a Debug build on Windows, printing inline diagnostics resulted in an error, for example: ``` > cd llvm-project\lldb\test\API\functionalities\postmortem\elf-core > lldb.exe -c altmain.core > p dummy LLDB

[Lldb-commits] [lldb] [lldb-dap] Adding a modules explorer to lldb-dap ext. (PR #138977)

2025-05-08 Thread Ebuka Ezike via lldb-commits
https://github.com/da-viper approved this pull request. https://github.com/llvm/llvm-project/pull/138977 ___ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

<    1   2