[Lldb-commits] [lldb] 0ee0a1e - [lldb-dap][Windows] use Unicode path limit (#206046)
via lldb-commits
lldb-commits at lists.llvm.org
Fri Jun 26 06:06:26 PDT 2026
Author: Charles Zablit
Date: 2026-06-26T14:06:21+01:00
New Revision: 0ee0a1ea6ab25de6e7c38dd7bf9385b9742154f3
URL: https://github.com/llvm/llvm-project/commit/0ee0a1ea6ab25de6e7c38dd7bf9385b9742154f3
DIFF: https://github.com/llvm/llvm-project/commit/0ee0a1ea6ab25de6e7c38dd7bf9385b9742154f3.diff
LOG: [lldb-dap][Windows] use Unicode path limit (#206046)
`MAX_PATH` is defined as 260. `PosixApi.h` already defines `PATH_MAX` as
`32,768` characters which is the max path limit for Unicode paths on
Windows.
Use this in `lldb-dap` on Windows to avoid path truncation.
Added:
Modified:
lldb/tools/lldb-dap/EventHelper.cpp
Removed:
################################################################################
diff --git a/lldb/tools/lldb-dap/EventHelper.cpp b/lldb/tools/lldb-dap/EventHelper.cpp
index 2e0f71d69db65..7295467fa0309 100644
--- a/lldb/tools/lldb-dap/EventHelper.cpp
+++ b/lldb/tools/lldb-dap/EventHelper.cpp
@@ -27,6 +27,7 @@
#include "lldb/API/SBPlatform.h"
#include "lldb/API/SBStream.h"
#include "lldb/API/SBThread.h"
+#include "lldb/Host/PosixApi.h"
#include "lldb/lldb-defines.h"
#include "lldb/lldb-types.h"
#include "llvm/Support/Error.h"
@@ -37,15 +38,6 @@
#include <mutex>
#include <utility>
-#if defined(_WIN32)
-#define NOMINMAX
-#include <windows.h>
-
-#ifndef PATH_MAX
-#define PATH_MAX MAX_PATH
-#endif
-#endif
-
using namespace llvm;
namespace lldb_dap {
More information about the lldb-commits
mailing list