[all-commits] [llvm/llvm-project] e8abdf: [lldb] Make MCP server instance global (#145616)

Jonas Devlieghere via All-commits all-commits at lists.llvm.org
Wed Jun 25 13:46:55 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: e8abdfc88ffed632750fe0fd7deafb577e902bd6
      https://github.com/llvm/llvm-project/commit/e8abdfc88ffed632750fe0fd7deafb577e902bd6
  Author: Jonas Devlieghere <jonas at devlieghere.com>
  Date:   2025-06-25 (Wed, 25 Jun 2025)

  Changed paths:
    M lldb/include/lldb/Core/Debugger.h
    M lldb/include/lldb/Core/ProtocolServer.h
    M lldb/include/lldb/lldb-forward.h
    M lldb/include/lldb/lldb-private-interfaces.h
    M lldb/source/Commands/CommandObjectProtocolServer.cpp
    M lldb/source/Core/Debugger.cpp
    M lldb/source/Core/ProtocolServer.cpp
    M lldb/source/Plugins/Protocol/MCP/Protocol.h
    M lldb/source/Plugins/Protocol/MCP/ProtocolServerMCP.cpp
    M lldb/source/Plugins/Protocol/MCP/ProtocolServerMCP.h
    M lldb/source/Plugins/Protocol/MCP/Tool.cpp
    M lldb/source/Plugins/Protocol/MCP/Tool.h
    M lldb/unittests/Protocol/ProtocolMCPServerTest.cpp

  Log Message:
  -----------
  [lldb] Make MCP server instance global (#145616)

Rather than having one MCP server per debugger, make the MCP server
global and pass a debugger id along with tool invocations that require
one. This PR also adds a second tool to list the available debuggers
with their targets so the model can decide which debugger instance to
use.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list