Skip to content

Commit e9625a4

Browse files
address comments
1 parent 2f7a6f1 commit e9625a4

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

lldb/cmake/modules/AddLLDB.cmake

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -168,8 +168,8 @@ function(add_lldb_executable name)
168168

169169
target_link_libraries(${name} PRIVATE ${ARG_LINK_LIBS})
170170
if(WIN32)
171-
list(FIND ARG_LINK_LIBS liblldb LIBLLD_INDEX)
172-
if(NOT LIBLLD_INDEX EQUAL -1)
171+
list(FIND ARG_LINK_LIBS liblldb LIBLLDB_INDEX)
172+
if(NOT LIBLLDB_INDEX EQUAL -1)
173173
target_link_options(${name} PRIVATE "/DELAYLOAD:$<TARGET_FILE_BASE_NAME:liblldb>.dll")
174174
endif()
175175
endif()

lldb/tools/driver/Driver.cpp

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
#include "llvm/Support/WithColor.h"
3434
#include "llvm/Support/raw_ostream.h"
3535

36-
#if _WIN32
36+
#ifdef _WIN32
3737
#include "llvm/Support/Windows/WindowsSupport.h"
3838
#endif
3939

@@ -434,11 +434,11 @@ SBError Driver::ProcessArgs(const opt::InputArgList &args, bool &exiting) {
434434
}
435435

436436
#ifdef _WIN32
437-
// Returns the full path to the lldb.exe executable
437+
/// Returns the full path to the lldb.exe executable.
438438
inline std::wstring GetPathToExecutableW() {
439-
// Iterate until we reach the Windows max path length (32,767).
439+
// Iterate until we reach the Windows API maximum path length (32,767).
440440
std::vector<WCHAR> buffer;
441-
buffer.resize(MAX_PATH);
441+
buffer.resize(MAX_PATH/*=260*/);
442442
while (buffer.size() < 32767) {
443443
if (GetModuleFileNameW(NULL, buffer.data(), buffer.size()) < buffer.size())
444444
return std::wstring(buffer.begin(), buffer.end());
@@ -447,9 +447,9 @@ inline std::wstring GetPathToExecutableW() {
447447
return L"";
448448
}
449449

450-
// Resolve the full path of the directory defined by
451-
// LLDB_PYTHON_DLL_RELATIVE_PATH. If it exists, add it to the list of DLL search
452-
// directories.
450+
/// Resolve the full path of the directory defined by
451+
/// LLDB_PYTHON_DLL_RELATIVE_PATH. If it exists, add it to the list of DLL search
452+
/// directories.
453453
void AddPythonDLLToSearchPath() {
454454
std::wstring modulePath = GetPathToExecutableW();
455455
if (modulePath.empty()) {

0 commit comments

Comments
 (0)