[Lldb-commits] [lldb] [lldb-mcp] Auto connect to the first running lldb mcp instance. (PR #157503)
John Harrison via lldb-commits
lldb-commits at lists.llvm.org
Tue Sep 9 09:48:05 PDT 2025
================
@@ -10,26 +10,107 @@
#include "lldb/Host/File.h"
#include "lldb/Host/MainLoop.h"
#include "lldb/Host/MainLoopBase.h"
-#include "lldb/Protocol/MCP/Protocol.h"
+#include "lldb/Host/Socket.h"
+#include "lldb/Initialization/SystemInitializerCommon.h"
+#include "lldb/Initialization/SystemLifetimeManager.h"
#include "lldb/Protocol/MCP/Server.h"
+#include "lldb/Utility/Status.h"
+#include "lldb/Utility/UriParser.h"
+#include "lldb/lldb-forward.h"
#include "llvm/ADT/StringRef.h"
+#include "llvm/Support/Error.h"
#include "llvm/Support/InitLLVM.h"
+#include "llvm/Support/ManagedStatic.h"
#include "llvm/Support/Signals.h"
#include "llvm/Support/WithColor.h"
+#include <cstdlib>
+#include <memory>
#if defined(_WIN32)
#include <fcntl.h>
#endif
+using namespace llvm;
+using namespace lldb;
using namespace lldb_protocol::mcp;
using lldb_private::File;
using lldb_private::MainLoop;
using lldb_private::MainLoopBase;
using lldb_private::NativeFile;
-static constexpr llvm::StringLiteral kName = "lldb-mcp";
-static constexpr llvm::StringLiteral kVersion = "0.1.0";
+namespace {
+
+inline void error(llvm::Error Err, StringRef Prefix = "") {
----------------
ashgti wrote:
Done.
https://github.com/llvm/llvm-project/pull/157503
More information about the lldb-commits
mailing list