[Lldb-commits] [lldb] [lldb] Fix a typo in documentation (PR #146115)

2025-06-27 Thread Kazu Hirata via lldb-commits
https://github.com/kazutakahirata closed https://github.com/llvm/llvm-project/pull/146115 ___ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

[Lldb-commits] [lldb] 9f5061d - [lldb] Fix a typo in documentation (#146115)

2025-06-27 Thread via lldb-commits
Author: Kazu Hirata Date: 2025-06-27T14:26:32-07:00 New Revision: 9f5061d4f00456d882db9eb606f4a82b2c40e7a8 URL: https://github.com/llvm/llvm-project/commit/9f5061d4f00456d882db9eb606f4a82b2c40e7a8 DIFF: https://github.com/llvm/llvm-project/commit/9f5061d4f00456d882db9eb606f4a82b2c40e7a8.diff L

[Lldb-commits] [lldb] [lldb] Fix evaluating expressions without JIT in an object context (PR #145599)

2025-06-27 Thread Igor Kudrin via lldb-commits
https://github.com/igorkudrin closed https://github.com/llvm/llvm-project/pull/145599 ___ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

[Lldb-commits] [lldb] 442f99d - [lldb] Fix evaluating expressions without JIT in an object context (#145599)

2025-06-27 Thread via lldb-commits
Author: Igor Kudrin Date: 2025-06-27T14:30:24-07:00 New Revision: 442f99d7698a4ca87ebb16cb22df610c45d4698a URL: https://github.com/llvm/llvm-project/commit/442f99d7698a4ca87ebb16cb22df610c45d4698a DIFF: https://github.com/llvm/llvm-project/commit/442f99d7698a4ca87ebb16cb22df610c45d4698a.diff L

[Lldb-commits] [lldb] Add option to not loading all DWOs when dumping separate_debug-info (PR #146166)

2025-06-27 Thread via lldb-commits
llvmbot wrote: @llvm/pr-subscribers-lldb Author: None (qxy11) Changes ### Summary Currently `target modules dump separate separate-debug-info` automatically loads up all DWO files, even if deferred loading is enabled through debug_names. Then, as expected all DWO files (assuming there is

[Lldb-commits] [lldb] [lldb] Adding file and pipe support to lldb_private::MainLoopWindows. (PR #145621)

2025-06-27 Thread John Harrison via lldb-commits
https://github.com/ashgti updated https://github.com/llvm/llvm-project/pull/145621 >From 79c10b6f6630b3ceaa85af45956aeafdf372b5be Mon Sep 17 00:00:00 2001 From: John Harrison Date: Wed, 25 Jun 2025 18:03:39 -0700 Subject: [PATCH 1/5] [lldb] Adding file and pipe support to lldb_private::MainLoo

[Lldb-commits] [lldb] Add option to not loading all DWOs when dumping separate_debug-info (PR #146166)

2025-06-27 Thread via lldb-commits
https://github.com/qxy11 created https://github.com/llvm/llvm-project/pull/146166 ### Summary Currently `target modules dump separate separate-debug-info` automatically loads up all DWO files, even if deferred loading is enabled through debug_names. Then, as expected all DWO files (assuming th

[Lldb-commits] [lldb] [lldb] Adding pipe support to lldb_private::MainLoopWindows. (PR #145621)

2025-06-27 Thread John Harrison via lldb-commits
https://github.com/ashgti edited https://github.com/llvm/llvm-project/pull/145621 ___ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

[Lldb-commits] [lldb] [lldb][Mach-O] Allow "process metadata" LC_NOTE to supply registers (PR #144627)

2025-06-27 Thread Jason Molenda via lldb-commits
https://github.com/jasonmolenda updated https://github.com/llvm/llvm-project/pull/144627 >From 92348b28fb02901e9437b92c1ddf8cfed31c Mon Sep 17 00:00:00 2001 From: Jason Molenda Date: Tue, 17 Jun 2025 18:57:11 -0700 Subject: [PATCH 01/13] [lldb][Mach-O] Allow "process metadata" LC_NOTE to s

[Lldb-commits] [lldb] Add option to not loading all DWOs when dumping separate_debug-info (PR #146166)

2025-06-27 Thread David Peixotto via lldb-commits
@@ -2547,6 +2561,7 @@ class CommandObjectTargetModulesDumpSeparateDebugInfoFiles OptionValueBoolean m_json = false; OptionValueBoolean m_errors_only = false; +OptionValueBoolean m_load_all_debug_info = true; dmpots wrote: I wonder if it would be b

[Lldb-commits] [lldb] [lldb][Mach-O] Allow "process metadata" LC_NOTE to supply registers (PR #144627)

2025-06-27 Thread Jason Molenda via lldb-commits
https://github.com/jasonmolenda updated https://github.com/llvm/llvm-project/pull/144627 >From 92348b28fb02901e9437b92c1ddf8cfed31c Mon Sep 17 00:00:00 2001 From: Jason Molenda Date: Tue, 17 Jun 2025 18:57:11 -0700 Subject: [PATCH 01/17] [lldb][Mach-O] Allow "process metadata" LC_NOTE to s

[Lldb-commits] [lldb] [lldb][Mach-O] Allow "process metadata" LC_NOTE to supply registers (PR #144627)

2025-06-27 Thread Jason Molenda via lldb-commits
https://github.com/jasonmolenda updated https://github.com/llvm/llvm-project/pull/144627 >From 92348b28fb02901e9437b92c1ddf8cfed31c Mon Sep 17 00:00:00 2001 From: Jason Molenda Date: Tue, 17 Jun 2025 18:57:11 -0700 Subject: [PATCH 01/16] [lldb][Mach-O] Allow "process metadata" LC_NOTE to s

[Lldb-commits] [lldb] [lldb][Mach-O] Allow "process metadata" LC_NOTE to supply registers (PR #144627)

2025-06-27 Thread Jason Molenda via lldb-commits
https://github.com/jasonmolenda updated https://github.com/llvm/llvm-project/pull/144627 >From 92348b28fb02901e9437b92c1ddf8cfed31c Mon Sep 17 00:00:00 2001 From: Jason Molenda Date: Tue, 17 Jun 2025 18:57:11 -0700 Subject: [PATCH 01/15] [lldb][Mach-O] Allow "process metadata" LC_NOTE to s

[Lldb-commits] [lldb] [lldb][RPC] Upstream lldb-rpc-gen tool (PR #138031)

2025-06-27 Thread Alex Langford via lldb-commits
https://github.com/bulbazord approved this pull request. Let's get this patch in and iterate on the tool. Please watch the bots after landing. https://github.com/llvm/llvm-project/pull/138031 ___ lldb-commits mailing list lldb-commits@lists.llvm.org h

[Lldb-commits] [lldb] [lldb] Adding pipe support to lldb_private::MainLoopWindows. (PR #145621)

2025-06-27 Thread John Harrison via lldb-commits
https://github.com/ashgti edited https://github.com/llvm/llvm-project/pull/145621 ___ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

[Lldb-commits] [lldb] [lldb][Mach-O] Allow "process metadata" LC_NOTE to supply registers (PR #144627)

2025-06-27 Thread Jason Molenda via lldb-commits
https://github.com/jasonmolenda updated https://github.com/llvm/llvm-project/pull/144627 >From 92348b28fb02901e9437b92c1ddf8cfed31c Mon Sep 17 00:00:00 2001 From: Jason Molenda Date: Tue, 17 Jun 2025 18:57:11 -0700 Subject: [PATCH 01/14] [lldb][Mach-O] Allow "process metadata" LC_NOTE to s

[Lldb-commits] [lldb] [lldb][Mach-O] Allow "process metadata" LC_NOTE to supply registers (PR #144627)

2025-06-27 Thread Jason Molenda via lldb-commits
@@ -70,27 +77,49 @@ lldb::RegisterContextSP ThreadMachCore::GetRegisterContext() { lldb::RegisterContextSP ThreadMachCore::CreateRegisterContextForFrame(StackFrame *frame) { - lldb::RegisterContextSP reg_ctx_sp; uint32_t concrete_frame_idx = 0; if (frame) concre

[Lldb-commits] [lldb] [lldb][Mach-O] Allow "process metadata" LC_NOTE to supply registers (PR #144627)

2025-06-27 Thread Jason Molenda via lldb-commits
https://github.com/jasonmolenda updated https://github.com/llvm/llvm-project/pull/144627 >From 92348b28fb02901e9437b92c1ddf8cfed31c Mon Sep 17 00:00:00 2001 From: Jason Molenda Date: Tue, 17 Jun 2025 18:57:11 -0700 Subject: [PATCH 01/18] [lldb][Mach-O] Allow "process metadata" LC_NOTE to s

[Lldb-commits] [lldb] [lldb] Fix evaluating expressions without JIT in an object context (PR #145599)

2025-06-27 Thread Igor Kudrin via lldb-commits
https://github.com/igorkudrin updated https://github.com/llvm/llvm-project/pull/145599 >From fac89bb1b51496761b156f22dcff85cbe86bf9d2 Mon Sep 17 00:00:00 2001 From: Igor Kudrin Date: Mon, 23 Jun 2025 23:39:52 -0700 Subject: [PATCH 1/2] [lldb] Fix evaluating expressions without JIT in an object

[Lldb-commits] [lldb] Add option to not loading all DWOs when dumping separate_debug-info (PR #146166)

2025-06-27 Thread David Peixotto via lldb-commits
@@ -2030,7 +2032,8 @@ class CommandObjectTargetModulesDumpSymtab } if (INTERRUPT_REQUESTED(GetDebugger(), "Interrupted in dump all symtabs with {0} " - "of {1} dumped.", num_dumped, num_modul

[Lldb-commits] [lldb] [lldb] Adding file and pipe support to lldb_private::MainLoopWindows. (PR #145621)

2025-06-27 Thread John Harrison via lldb-commits
ashgti wrote: On my windows VM, all tests are passing now and it looks like this is also working for Linux. I think the current CI check is a no-op on Windows for lldb. https://github.com/llvm/llvm-project/pull/145621 ___ lldb-commits mailing list lld

[Lldb-commits] [lldb] [lldb] Document MCP support in LLDB (PR #145935)

2025-06-27 Thread Adrian Prantl via lldb-commits
https://github.com/adrian-prantl approved this pull request. https://github.com/llvm/llvm-project/pull/145935 ___ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

[Lldb-commits] [lldb] [lldb][RPC] Upstream lldb-rpc-gen tool (PR #138031)

2025-06-27 Thread Chelsea Cassanova via lldb-commits
https://github.com/chelcassanova updated https://github.com/llvm/llvm-project/pull/138031 >From bf72ec458e7788ddd8d7cb7d42fbf55a9112722f Mon Sep 17 00:00:00 2001 From: Chelsea Cassanova Date: Wed, 30 Apr 2025 14:15:39 -0700 Subject: [PATCH] [lldb][RPC] Upstream lldb-rpc-gen tool This commit up

[Lldb-commits] [lldb] [lldb][RPC] Upstream lldb-rpc-gen tool (PR #138031)

2025-06-27 Thread Chelsea Cassanova via lldb-commits
chelcassanova wrote: When I updated the patch, the test now fails because of the error that it's missing the clang resource dir. That repros locally and I haven't changed anything about how the tool is built outside of adding a CMake variable, investigating. https://github.com/llvm/llvm-proje

[Lldb-commits] [lldb] [lldb][Mach-O] Allow "process metadata" LC_NOTE to supply registers (PR #144627)

2025-06-27 Thread Jason Molenda via lldb-commits
@@ -0,0 +1,300 @@ +//===-- RegisterContextUnifiedCore.cpp ===// +// +// 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: Ap

[Lldb-commits] [clang] [lldb] [llvm] [lldb] Fix object format in the Triple of Mach-O files (approach 4) (PR #145157)

2025-06-27 Thread David Peixotto via lldb-commits
@@ -463,6 +463,27 @@ class Triple { const std::string &str() const { return Data; } + /// Return the triple string but only keep the first \p N components. + /// + /// The returned string will preserve the first \p N components exactly the + /// same as the original (in

[Lldb-commits] [clang] [lldb] [llvm] [lldb] Fix object format in the Triple of Mach-O files (approach 4) (PR #145157)

2025-06-27 Thread David Peixotto via lldb-commits
@@ -642,9 +642,9 @@ bool SBDebugger::GetDefaultArchitecture(char *arch_name, size_t arch_name_len) { ArchSpec default_arch = Target::GetDefaultArchitecture(); if (default_arch.IsValid()) { - const std::string &triple_str = default_arch.GetTriple().str(); + c

[Lldb-commits] [lldb] [lldb][RPC] Upstream lldb-rpc-gen tool (PR #138031)

2025-06-27 Thread Chelsea Cassanova via lldb-commits
chelcassanova wrote: Actually, the test fails locally for me. On the pre-commit CI it's error message is `home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/lldb/test/Shell/RPC/Generator/Tests/Output/CheckRPCGenToolByproducts.test.script: line 1: fg: no job control`, which mea

[Lldb-commits] [lldb] [lldb][Mach-O] Allow "process metadata" LC_NOTE to supply registers (PR #144627)

2025-06-27 Thread Jason Molenda via lldb-commits
@@ -0,0 +1,300 @@ +//===-- RegisterContextUnifiedCore.cpp ===// +// +// 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: Ap

[Lldb-commits] [lldb] [lldb] Add Model Context Protocol (MCP) support to LLDB (PR #143628)

2025-06-27 Thread David Spickett via lldb-commits
DavidSpickett wrote: @JDevlieghere Release note please. Feel free to put it at the the top for maximum buzzword power :) Include a link to the documentation page once you've added that. https://github.com/llvm/llvm-project/pull/143628 ___ lldb-commit

[Lldb-commits] [lldb] Support disassembling RISC-V proprietary instructions (PR #145793)

2025-06-27 Thread David Spickett via lldb-commits
DavidSpickett wrote: > Upon realising that almost all of our custom extensions are only used in > assembly Which is surprising to me, but if I looked at all the assembly only extensions for Arm I'd find the the same thing. I just rarely have to deal with those. > And that's how we get here: f

[Lldb-commits] [lldb] [LLDB] Update DIL to handle smart pointers; add more tests. (PR #143786)

2025-06-27 Thread Pavel Labath via lldb-commits
https://github.com/labath commented: I meant adding a new test method (`def test_something(self): self.build(); self.run(); your code`), but this is fine too, especially if the switch to the new implementation is imminent. https://github.com/llvm/llvm-project/pull/143786 __

[Lldb-commits] [lldb] [LLDB] Update DIL to handle smart pointers; add more tests. (PR #143786)

2025-06-27 Thread Pavel Labath via lldb-commits
https://github.com/labath approved this pull request. https://github.com/llvm/llvm-project/pull/143786 ___ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

[Lldb-commits] [lldb] [lldb] Use llvm::is_contained (NFC) (PR #146012)

2025-06-27 Thread Tim Gymnich via lldb-commits
https://github.com/tgymnich approved this pull request. https://github.com/llvm/llvm-project/pull/146012 ___ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

[Lldb-commits] [lldb] 2c90c0b - [lldb] Extract debug server location code (#145706)

2025-06-27 Thread via lldb-commits
Author: Pavel Labath Date: 2025-06-27T11:16:57+02:00 New Revision: 2c90c0b90cbdfbd069b2e79d6a2c3e3b160bf896 URL: https://github.com/llvm/llvm-project/commit/2c90c0b90cbdfbd069b2e79d6a2c3e3b160bf896 DIFF: https://github.com/llvm/llvm-project/commit/2c90c0b90cbdfbd069b2e79d6a2c3e3b160bf896.diff

[Lldb-commits] [lldb] [lldb] Extract debug server location code (PR #145706)

2025-06-27 Thread Pavel Labath via lldb-commits
https://github.com/labath closed https://github.com/llvm/llvm-project/pull/145706 ___ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

[Lldb-commits] [lldb] [lldb] Document MCP support in LLDB (PR #145935)

2025-06-27 Thread David Spickett via lldb-commits
@@ -0,0 +1,68 @@ +# Model Context Protocol (MCP) + +LLDB supports for the [Model Context Protocol][1] (MCP). This structured, +machine-friendly protocol allows AI models to access and interact with external +tools, such as the debugger. Using MCP, an AI agent can execute LLDB comm

[Lldb-commits] [lldb] [lldb] Document MCP support in LLDB (PR #145935)

2025-06-27 Thread David Spickett via lldb-commits
@@ -0,0 +1,68 @@ +# Model Context Protocol (MCP) + +LLDB supports for the [Model Context Protocol][1] (MCP). This structured, +machine-friendly protocol allows AI models to access and interact with external +tools, such as the debugger. Using MCP, an AI agent can execute LLDB comm

[Lldb-commits] [lldb] [lldb][NFC] Inline ResolveSDKPathFromDebugInfo in one of its call site (PR #146062)

2025-06-27 Thread Charles Zablit via lldb-commits
https://github.com/charles-zablit edited https://github.com/llvm/llvm-project/pull/146062 ___ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

[Lldb-commits] [lldb] [lldb][NFC] Inline ResolveSDKPathFromDebugInfo in one of its call site (PR #146062)

2025-06-27 Thread Charles Zablit via lldb-commits
https://github.com/charles-zablit created https://github.com/llvm/llvm-project/pull/146062 This patch is part of an effort to remove the ResolveSDKPathFromDebugInfo method, and more specifically the variant which takes a Module as argument. This PR should be merged after https://github.com/llv

[Lldb-commits] [lldb] [lldb][NFC] Inline ResolveSDKPathFromDebugInfo in one of its call site (PR #146062)

2025-06-27 Thread via lldb-commits
llvmbot wrote: @llvm/pr-subscribers-lldb Author: Charles Zablit (charles-zablit) Changes This patch is part of an effort to remove the ResolveSDKPathFromDebugInfo method, and more specifically the variant which takes a Module as argument. This PR should be merged after https://github.com

[Lldb-commits] [lldb] Fix a bug in the breakpoint ID verifier in CommandObjectBreakpoint. (PR #145994)

2025-06-27 Thread David Spickett via lldb-commits
DavidSpickett wrote: Already done by https://github.com/llvm/llvm-project/commit/3f00cff5c7871dbde3871d31fffbf183b3ce3419. https://github.com/llvm/llvm-project/pull/145994 ___ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.or

[Lldb-commits] [lldb] [LLDB] Add type summaries for MSVC STL strings (PR #143177)

2025-06-27 Thread David Spickett via lldb-commits
@@ -299,6 +299,8 @@ def parseOptionsAndInitTestdirs(): configuration.libcxx_library_dir = args.libcxx_library_dir configuration.cmake_build_type = args.cmake_build_type.lower() +configuration.target_triple = args.target_triple + DavidSpickett wrote

[Lldb-commits] [lldb] [lldb] make PlatformAndroid/AdbClient::GetSyncService threadsafe (PR #145382)

2025-06-27 Thread Chad Smith via lldb-commits
cs01 wrote: Thank you both for the feedback. I started working on changes that add more mutexes to adbclient methods, use a shared pointer for the sync service, and has cleaner/less path dependent creation of the syncservice (I agree with your comments labath). I will push an update either tod

[Lldb-commits] [lldb] [LLDB] Add type summaries for MSVC STL strings (PR #143177)

2025-06-27 Thread David Spickett via lldb-commits
@@ -0,0 +1,4 @@ +CXX_SOURCES := main.cpp + +CXXFLAGS_EXTRAS := -std=c++20 -O0 DavidSpickett wrote: Is there a specific reason for this to be C++20? Trying to enable as many features in u8string as possible perhaps? https://github.com/llvm/llvm-project/pull/1431

[Lldb-commits] [lldb] [LLDB] Add type summaries for MSVC STL strings (PR #143177)

2025-06-27 Thread David Spickett via lldb-commits
@@ -299,6 +299,8 @@ def parseOptionsAndInitTestdirs(): configuration.libcxx_library_dir = args.libcxx_library_dir configuration.cmake_build_type = args.cmake_build_type.lower() +configuration.target_triple = args.target_triple + DavidSpickett wrote

[Lldb-commits] [lldb] [lldb][RISCV] fix LR/SC atomic sequence handling in lldb-server (PR #146072)

2025-06-27 Thread David Spickett via lldb-commits
https://github.com/DavidSpickett approved this pull request. Please describe in the PR description the changes made since it was reverted (even as trivial as they are here). This helps git archaeology a bit, and users who might want to check the state of a feature later and might be confused b

[Lldb-commits] [lldb] [llvm] [NFC][DebugInfo][DWARF] Create new low-level dwarf library (PR #145081)

2025-06-27 Thread LLVM Continuous Integration via lldb-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `flang-aarch64-sharedlibs` running on `linaro-flang-aarch64-sharedlibs` while building `bolt,lldb,llvm,utils` at step 5 "build-unified-tree". Full details are available at: https://lab.llvm.org/buildbot/#/builders/80/builds/14

[Lldb-commits] [lldb] Fix a bug in the breakpoint ID verifier in CommandObjectBreakpoint. (PR #145994)

2025-06-27 Thread Dmitry Vasilyev via lldb-commits
slydiman wrote: The buildbot [lldb-x86_64-win](https://lab.llvm.org/staging/#/builders/211/builds/700) is broken after this patch. Please fix it ASAP. We are planning to switch this buildbot to the production mode soon. https://github.com/llvm/llvm-project/pull/145994

[Lldb-commits] [lldb] [lldb] Adding file and pipe support to lldb_private::MainLoopWindows. (PR #145621)

2025-06-27 Thread Pavel Labath via lldb-commits
@@ -21,7 +24,9 @@ using namespace lldb; using namespace lldb_private; -static DWORD ToTimeout(std::optional point) { +namespace { labath wrote: according to the [coding standards](https://llvm.org/docs/CodingStandards.html#restrict-visibility) anonymous nam

[Lldb-commits] [lldb] [lldb] Adding file and pipe support to lldb_private::MainLoopWindows. (PR #145621)

2025-06-27 Thread Pavel Labath via lldb-commits
@@ -493,7 +496,12 @@ ConnectionFileDescriptor::BytesAvailable(const Timeout &timeout, break; // Lets keep reading to until we timeout } } else { +#if defined(_WIN32) +if (const auto *sock = static_cast(m_io_sp.get()); labath wro

[Lldb-commits] [lldb] [lldb] Adding file and pipe support to lldb_private::MainLoopWindows. (PR #145621)

2025-06-27 Thread Pavel Labath via lldb-commits
@@ -31,20 +31,27 @@ class MainLoopWindows : public MainLoopBase { Status Run() override; + struct FdInfo { +FdInfo(intptr_t event, Callback callback) +: event(event), callback(callback) {} +virtual ~FdInfo() {} +virtual void WillPoll() {} +virtual v

[Lldb-commits] [lldb] [lldb] Adding file and pipe support to lldb_private::MainLoopWindows. (PR #145621)

2025-06-27 Thread Pavel Labath via lldb-commits
@@ -31,20 +31,27 @@ class MainLoopWindows : public MainLoopBase { Status Run() override; + struct FdInfo { +FdInfo(intptr_t event, Callback callback) +: event(event), callback(callback) {} +virtual ~FdInfo() {} +virtual void WillPoll() {} +virtual v

[Lldb-commits] [lldb] [lldb] Adding file and pipe support to lldb_private::MainLoopWindows. (PR #145621)

2025-06-27 Thread Pavel Labath via lldb-commits
@@ -31,6 +36,127 @@ static DWORD ToTimeout(std::optional point) { return ceil(dur).count(); } +class PipeFdInfo : public MainLoopWindows::FdInfo { +public: + explicit PipeFdInfo(HANDLE handle, MainLoopBase::Callback callback) + : FdInfo((intptr_t)CreateEventW(NULL, /*

[Lldb-commits] [lldb] [lldb] Adding file and pipe support to lldb_private::MainLoopWindows. (PR #145621)

2025-06-27 Thread Pavel Labath via lldb-commits
@@ -313,8 +318,39 @@ Socket::DecodeHostAndPort(llvm::StringRef host_and_port) { } IOObject::WaitableHandle Socket::GetWaitableHandle() { - // TODO: On Windows, use WSAEventSelect +#ifdef _WIN32 + if (m_socket == kInvalidSocketValue) +return kInvalidHandleValue; + + if (

[Lldb-commits] [lldb] [lldb] Adding file and pipe support to lldb_private::MainLoopWindows. (PR #145621)

2025-06-27 Thread Pavel Labath via lldb-commits
@@ -31,8 +31,11 @@ #include #include #include +#include #include +#include #include +#include labath wrote: Are all of these still used? https://github.com/llvm/llvm-project/pull/145621 ___ lldb-commits ma

[Lldb-commits] [lldb] [lldb] Adding file and pipe support to lldb_private::MainLoopWindows. (PR #145621)

2025-06-27 Thread Pavel Labath via lldb-commits
https://github.com/labath commented: This looks much better. My two main questions now are: - do we need regular file support - do we need the pipe *thread* (I think/hope the answer is "no" on both counts). https://github.com/llvm/llvm-project/pull/145621 ___

[Lldb-commits] [lldb] [lldb] Adding file and pipe support to lldb_private::MainLoopWindows. (PR #145621)

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

[Lldb-commits] [lldb] [lldb] Adding file and pipe support to lldb_private::MainLoopWindows. (PR #145621)

2025-06-27 Thread Pavel Labath via lldb-commits
@@ -274,7 +276,23 @@ int NativeFile::GetDescriptor() const { } IOObject::WaitableHandle NativeFile::GetWaitableHandle() { +#ifdef _WIN32 + return (HANDLE)_get_osfhandle(GetDescriptor()); +#else return GetDescriptor(); +#endif +} + +bool NativeFile::HasReadableData() { +#if

[Lldb-commits] [lldb] [lldb] Document MCP support in LLDB (PR #145935)

2025-06-27 Thread David Spickett via lldb-commits
@@ -0,0 +1,68 @@ +# Model Context Protocol (MCP) + +LLDB supports for the [Model Context Protocol][1] (MCP). This structured, +machine-friendly protocol allows AI models to access and interact with external +tools, such as the debugger. Using MCP, an AI agent can execute LLDB comm

[Lldb-commits] [lldb] [lldb] Document MCP support in LLDB (PR #145935)

2025-06-27 Thread David Spickett via lldb-commits
@@ -0,0 +1,68 @@ +# Model Context Protocol (MCP) + +LLDB supports for the [Model Context Protocol][1] (MCP). This structured, +machine-friendly protocol allows AI models to access and interact with external +tools, such as the debugger. Using MCP, an AI agent can execute LLDB comm

[Lldb-commits] [lldb] [lldb] Document MCP support in LLDB (PR #145935)

2025-06-27 Thread David Spickett via lldb-commits
@@ -0,0 +1,68 @@ +# Model Context Protocol (MCP) + +LLDB supports for the [Model Context Protocol][1] (MCP). This structured, DavidSpickett wrote: `supports the`, drop the `for` https://github.com/llvm/llvm-project/pull/145935 ___

[Lldb-commits] [lldb] [lldb] Document MCP support in LLDB (PR #145935)

2025-06-27 Thread David Spickett via lldb-commits
@@ -0,0 +1,68 @@ +# Model Context Protocol (MCP) + +LLDB supports for the [Model Context Protocol][1] (MCP). This structured, +machine-friendly protocol allows AI models to access and interact with external +tools, such as the debugger. Using MCP, an AI agent can execute LLDB comm

[Lldb-commits] [lldb] [lldb] Document MCP support in LLDB (PR #145935)

2025-06-27 Thread David Spickett via lldb-commits
@@ -0,0 +1,68 @@ +# Model Context Protocol (MCP) + +LLDB supports for the [Model Context Protocol][1] (MCP). This structured, +machine-friendly protocol allows AI models to access and interact with external +tools, such as the debugger. Using MCP, an AI agent can execute LLDB comm

[Lldb-commits] [lldb] [lldb] Document MCP support in LLDB (PR #145935)

2025-06-27 Thread David Spickett via lldb-commits
@@ -0,0 +1,68 @@ +# Model Context Protocol (MCP) + +LLDB supports for the [Model Context Protocol][1] (MCP). This structured, +machine-friendly protocol allows AI models to access and interact with external +tools, such as the debugger. Using MCP, an AI agent can execute LLDB comm

[Lldb-commits] [lldb] [lldb] Document MCP support in LLDB (PR #145935)

2025-06-27 Thread David Spickett via lldb-commits
@@ -0,0 +1,68 @@ +# Model Context Protocol (MCP) + +LLDB supports for the [Model Context Protocol][1] (MCP). This structured, +machine-friendly protocol allows AI models to access and interact with external +tools, such as the debugger. Using MCP, an AI agent can execute LLDB comm

[Lldb-commits] [lldb] [lldb] Document MCP support in LLDB (PR #145935)

2025-06-27 Thread David Spickett via lldb-commits
@@ -0,0 +1,68 @@ +# Model Context Protocol (MCP) + +LLDB supports for the [Model Context Protocol][1] (MCP). This structured, +machine-friendly protocol allows AI models to access and interact with external +tools, such as the debugger. Using MCP, an AI agent can execute LLDB comm

[Lldb-commits] [lldb] da2969b - [LLDB] Update DIL to handle smart pointers; add more tests. (#143786)

2025-06-27 Thread via lldb-commits
Author: cmtice Date: 2025-06-27T07:30:14-07:00 New Revision: da2969b1051f4adf57d4395cd2f3e1e8c33b3d1b URL: https://github.com/llvm/llvm-project/commit/da2969b1051f4adf57d4395cd2f3e1e8c33b3d1b DIFF: https://github.com/llvm/llvm-project/commit/da2969b1051f4adf57d4395cd2f3e1e8c33b3d1b.diff LOG: [

[Lldb-commits] [lldb] [LLDB] Update DIL to handle smart pointers; add more tests. (PR #143786)

2025-06-27 Thread via lldb-commits
https://github.com/cmtice closed https://github.com/llvm/llvm-project/pull/143786 ___ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

[Lldb-commits] [lldb] Support disassembling RISC-V proprietary instructions (PR #145793)

2025-06-27 Thread David Spickett via lldb-commits
@@ -0,0 +1,87 @@ +""" +Defines a command, fdis, that does filtered disassembly. The command does the +lldb disassemble command with -b and any other arguments passed in, and +pipes that through a provided filter program. + +The intention is to support disassembly of RISC-V proprie

[Lldb-commits] [lldb] [LLDB] Add type summaries for MSVC STL strings (PR #143177)

2025-06-27 Thread David Spickett via lldb-commits
@@ -299,6 +299,8 @@ def parseOptionsAndInitTestdirs(): configuration.libcxx_library_dir = args.libcxx_library_dir configuration.cmake_build_type = args.cmake_build_type.lower() +configuration.target_triple = args.target_triple + DavidSpickett wrote

[Lldb-commits] [lldb] Support disassembling RISC-V proprietary instructions (PR #145793)

2025-06-27 Thread David Spickett via lldb-commits
@@ -658,8 +658,13 @@ void Instruction::Dump(lldb_private::Stream *s, uint32_t max_opcode_byte_size, // the byte dump to be able to always show 15 bytes (3 chars each) plus a // space if (max_opcode_byte_size > 0) -m_opcode.Dump(&ss, max_opcode_byte_si

[Lldb-commits] [lldb] Support disassembling RISC-V proprietary instructions (PR #145793)

2025-06-27 Thread David Spickett via lldb-commits
@@ -658,8 +658,13 @@ void Instruction::Dump(lldb_private::Stream *s, uint32_t max_opcode_byte_size, // the byte dump to be able to always show 15 bytes (3 chars each) plus a // space if (max_opcode_byte_size > 0) -m_opcode.Dump(&ss, max_opcode_byte_si

[Lldb-commits] [lldb] Support disassembling RISC-V proprietary instructions (PR #145793)

2025-06-27 Thread David Spickett via lldb-commits
DavidSpickett wrote: > Arm M profile has > https://developer.arm.com/Architectures/Arm%20Custom%20Instructions, I'll > look into that and see if it would benefit from a change of output format > too. Just in theory though, I don't think we shipped support for open source > debuggers and I'm n

[Lldb-commits] [lldb] Support disassembling RISC-V proprietary instructions (PR #145793)

2025-06-27 Thread David Spickett via lldb-commits
@@ -78,6 +78,44 @@ lldb::ByteOrder Opcode::GetDataByteOrder() const { return eByteOrderInvalid; } +// make RISC-V byte dumps look like llvm-objdump, instead of just dumping bytes +int Opcode::DumpRISCV(Stream *s, uint32_t min_byte_width) { + const uint32_t previous_bytes =

[Lldb-commits] [lldb] [lldb][Mach-O] Allow "process metadata" LC_NOTE to supply registers (PR #144627)

2025-06-27 Thread Jason Molenda via lldb-commits
@@ -0,0 +1,300 @@ +//===-- RegisterContextUnifiedCore.cpp ===// +// +// 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: Ap

[Lldb-commits] [lldb] [lldb][Mach-O] Allow "process metadata" LC_NOTE to supply registers (PR #144627)

2025-06-27 Thread Jason Molenda via lldb-commits
https://github.com/jasonmolenda updated https://github.com/llvm/llvm-project/pull/144627 >From 92348b28fb02901e9437b92c1ddf8cfed31c Mon Sep 17 00:00:00 2001 From: Jason Molenda Date: Tue, 17 Jun 2025 18:57:11 -0700 Subject: [PATCH 01/19] [lldb][Mach-O] Allow "process metadata" LC_NOTE to s

[Lldb-commits] [lldb] a64db49 - [lldb][Mach-O] Allow "process metadata" LC_NOTE to supply registers (#144627)

2025-06-27 Thread via lldb-commits
Author: Jason Molenda Date: 2025-06-27T18:43:41-07:00 New Revision: a64db49371f040859a9de7c0f4fbfb655d8dda17 URL: https://github.com/llvm/llvm-project/commit/a64db49371f040859a9de7c0f4fbfb655d8dda17 DIFF: https://github.com/llvm/llvm-project/commit/a64db49371f040859a9de7c0f4fbfb655d8dda17.diff

[Lldb-commits] [lldb] [lldb][Mach-O] Allow "process metadata" LC_NOTE to supply registers (PR #144627)

2025-06-27 Thread Jason Molenda via lldb-commits
@@ -0,0 +1,300 @@ +//===-- RegisterContextUnifiedCore.cpp ===// +// +// 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: Ap

[Lldb-commits] [lldb] [llvm] [NFC][DebugInfo][DWARF] Create new low-level dwarf library (PR #145081)

2025-06-27 Thread LLVM Continuous Integration via lldb-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `clang-s390x-linux` running on `systemz-1` while building `bolt,lldb,llvm,utils` at step 5 "ninja check 1". Full details are available at: https://lab.llvm.org/buildbot/#/builders/42/builds/5136 Here is the relevant piece of

[Lldb-commits] [lldb] [lldb] Adding file and pipe support to lldb_private::MainLoopWindows. (PR #145621)

2025-06-27 Thread John Harrison via lldb-commits
https://github.com/ashgti updated https://github.com/llvm/llvm-project/pull/145621 >From 954f107c85f766ee75370b349eb039819f456db5 Mon Sep 17 00:00:00 2001 From: John Harrison Date: Wed, 25 Jun 2025 18:03:39 -0700 Subject: [PATCH 1/4] [lldb] Adding file and pipe support to lldb_private::MainLoo

[Lldb-commits] [lldb] [lldb] Adding file and pipe support to lldb_private::MainLoopWindows. (PR #145621)

2025-06-27 Thread John Harrison via lldb-commits
@@ -493,7 +496,12 @@ ConnectionFileDescriptor::BytesAvailable(const Timeout &timeout, break; // Lets keep reading to until we timeout } } else { +#if defined(_WIN32) +if (const auto *sock = static_cast(m_io_sp.get()); ashgti wro

[Lldb-commits] [lldb] [lldb] Adding file and pipe support to lldb_private::MainLoopWindows. (PR #145621)

2025-06-27 Thread John Harrison via lldb-commits
@@ -31,8 +31,11 @@ #include #include #include +#include #include +#include #include +#include ashgti wrote: Removed. https://github.com/llvm/llvm-project/pull/145621 ___ lldb-commits mailing list lldb-comm

[Lldb-commits] [lldb] [lldb] Adding file and pipe support to lldb_private::MainLoopWindows. (PR #145621)

2025-06-27 Thread John Harrison via lldb-commits
@@ -31,20 +31,27 @@ class MainLoopWindows : public MainLoopBase { Status Run() override; + struct FdInfo { +FdInfo(intptr_t event, Callback callback) +: event(event), callback(callback) {} +virtual ~FdInfo() {} +virtual void WillPoll() {} +virtual v

[Lldb-commits] [compiler-rt] [lldb] [llvm] Reapply "[NFC][DebugInfo][DWARF] Create new low-level dwarf library (#… (#145959) (PR #146112)

2025-06-27 Thread David Blaikie via lldb-commits
https://github.com/dwblaikie approved this pull request. https://github.com/llvm/llvm-project/pull/146112 ___ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

[Lldb-commits] [lldb] [lldb] Adding file and pipe support to lldb_private::MainLoopWindows. (PR #145621)

2025-06-27 Thread John Harrison via lldb-commits
@@ -31,20 +31,27 @@ class MainLoopWindows : public MainLoopBase { Status Run() override; + struct FdInfo { +FdInfo(intptr_t event, Callback callback) +: event(event), callback(callback) {} +virtual ~FdInfo() {} +virtual void WillPoll() {} +virtual v

[Lldb-commits] [compiler-rt] [lldb] [llvm] Reapply "[NFC][DebugInfo][DWARF] Create new low-level dwarf library (#… (#145959) (PR #146112)

2025-06-27 Thread via lldb-commits
https://github.com/Sterling-Augustine closed https://github.com/llvm/llvm-project/pull/146112 ___ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

[Lldb-commits] [lldb] [lldb] Fix evaluating expressions without JIT in an object context (PR #145599)

2025-06-27 Thread via lldb-commits
https://github.com/jimingham approved this pull request. This one is ready then. https://github.com/llvm/llvm-project/pull/145599 ___ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

[Lldb-commits] [lldb] [lldb] Correctly restore the cursor column after resizing the statusline (PR #146132)

2025-06-27 Thread Jonas Devlieghere via lldb-commits
https://github.com/JDevlieghere created https://github.com/llvm/llvm-project/pull/146132 This PR ensures we correctly restore the cursor column after resizing the statusline. To ensure we have space for the statusline, we have to emit a newline to move up everything on screen. The newline caus

[Lldb-commits] [lldb] [lldb] Correctly restore the cursor column after resizing the statusline (PR #146132)

2025-06-27 Thread via lldb-commits
llvmbot wrote: @llvm/pr-subscribers-lldb Author: Jonas Devlieghere (JDevlieghere) Changes This PR ensures we correctly restore the cursor column after resizing the statusline. To ensure we have space for the statusline, we have to emit a newline to move up everything on screen. The newli

[Lldb-commits] [lldb] [lldb] Correctly restore the cursor column after resizing the statusline (PR #145823)

2025-06-27 Thread Jonas Devlieghere via lldb-commits
JDevlieghere wrote: Alternative approach: https://github.com/llvm/llvm-project/pull/146132 https://github.com/llvm/llvm-project/pull/145823 ___ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-c

[Lldb-commits] [lldb] [lldb][Mach-O] Allow "process metadata" LC_NOTE to supply registers (PR #144627)

2025-06-27 Thread Jonas Devlieghere via lldb-commits
@@ -5857,6 +5838,50 @@ bool ObjectFileMachO::GetCorefileThreadExtraInfos( return false; } +StructuredData::ObjectSP ObjectFileMachO::GetCorefileProcessMetadata() { + ModuleSP module_sp(GetModule()); + if (!module_sp) +return {}; + + Log *log(GetLog(LLDBLog::Object | L

[Lldb-commits] [lldb] [lldb][Mach-O] Allow "process metadata" LC_NOTE to supply registers (PR #144627)

2025-06-27 Thread Jonas Devlieghere via lldb-commits
@@ -0,0 +1,300 @@ +//===-- RegisterContextUnifiedCore.cpp ===// +// +// 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: Ap

[Lldb-commits] [lldb] [lldb][Mach-O] Allow "process metadata" LC_NOTE to supply registers (PR #144627)

2025-06-27 Thread Jonas Devlieghere via lldb-commits
@@ -5857,6 +5838,50 @@ bool ObjectFileMachO::GetCorefileThreadExtraInfos( return false; } +StructuredData::ObjectSP ObjectFileMachO::GetCorefileProcessMetadata() { + ModuleSP module_sp(GetModule()); + if (!module_sp) +return {}; + + Log *log(GetLog(LLDBLog::Object | L

[Lldb-commits] [lldb] [lldb][Mach-O] Allow "process metadata" LC_NOTE to supply registers (PR #144627)

2025-06-27 Thread Jonas Devlieghere via lldb-commits
@@ -0,0 +1,300 @@ +//===-- RegisterContextUnifiedCore.cpp ===// +// +// 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: Ap

[Lldb-commits] [lldb] [lldb][Mach-O] Allow "process metadata" LC_NOTE to supply registers (PR #144627)

2025-06-27 Thread Jonas Devlieghere via lldb-commits
@@ -0,0 +1,300 @@ +//===-- RegisterContextUnifiedCore.cpp ===// +// +// 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: Ap

[Lldb-commits] [lldb] [lldb][Mach-O] Allow "process metadata" LC_NOTE to supply registers (PR #144627)

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

[Lldb-commits] [lldb] [lldb][Mach-O] Allow "process metadata" LC_NOTE to supply registers (PR #144627)

2025-06-27 Thread Jonas Devlieghere via lldb-commits
@@ -0,0 +1,300 @@ +//===-- RegisterContextUnifiedCore.cpp ===// +// +// 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: Ap

[Lldb-commits] [lldb] [lldb][Mach-O] Allow "process metadata" LC_NOTE to supply registers (PR #144627)

2025-06-27 Thread Jonas Devlieghere via lldb-commits
@@ -133,6 +133,8 @@ class ObjectFileMachO : public lldb_private::ObjectFile { bool GetCorefileThreadExtraInfos(std::vector &tids) override; + lldb_private::StructuredData::ObjectSP GetCorefileProcessMetadata() override; JDevlieghere wrote: ```suggestion

[Lldb-commits] [lldb] [lldb][Mach-O] Allow "process metadata" LC_NOTE to supply registers (PR #144627)

2025-06-27 Thread Jonas Devlieghere via lldb-commits
@@ -0,0 +1,300 @@ +//===-- RegisterContextUnifiedCore.cpp ===// +// +// 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: Ap

  1   2   >