diff options
author | Martin Storsjo <martin@martin.st> | 2019-10-11 11:47:07 +0000 |
---|---|---|
committer | Martin Storsjo <martin@martin.st> | 2019-10-11 11:47:07 +0000 |
commit | 807dbee36679a8e43b25c3fcfd38e750fd4e943d (patch) | |
tree | 6b01c7adb8ef7c1abddb0d16b86b3ac3b01aaec0 /lldb/tools/lldb-server/lldb-server.cpp | |
parent | 77fbf069f6dd5f18d992a8d2e03484070f60ba3d (diff) | |
download | bcm5719-llvm-807dbee36679a8e43b25c3fcfd38e750fd4e943d.tar.gz bcm5719-llvm-807dbee36679a8e43b25c3fcfd38e750fd4e943d.zip |
[LLDB] [lldb-server] Use llvm::InitLLVM for doing unicode conversion of arguments for windows
This should allow lldb-server to operate on files with non-ascii
pathnames.
I tried looking around in lldb/tools, and this seemed like the only
other tool (other than the main lldb driver itself) that would be
used (implicitly) by an end user (which could be working in
non-ascii paths).
Differential Revision: https://reviews.llvm.org/D68864
llvm-svn: 374537
Diffstat (limited to 'lldb/tools/lldb-server/lldb-server.cpp')
-rw-r--r-- | lldb/tools/lldb-server/lldb-server.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lldb/tools/lldb-server/lldb-server.cpp b/lldb/tools/lldb-server/lldb-server.cpp index 518c34b0903..ab32eefb518 100644 --- a/lldb/tools/lldb-server/lldb-server.cpp +++ b/lldb/tools/lldb-server/lldb-server.cpp @@ -12,6 +12,7 @@ #include "llvm/ADT/STLExtras.h" #include "llvm/ADT/StringRef.h" +#include "llvm/Support/InitLLVM.h" #include "llvm/Support/ManagedStatic.h" #include "llvm/Support/PrettyStackTrace.h" #include "llvm/Support/Signals.h" @@ -48,6 +49,7 @@ static void terminate_debugger() { g_debugger_lifetime->Terminate(); } // main int main(int argc, char *argv[]) { + llvm::InitLLVM IL(argc, argv); llvm::StringRef ToolName = argv[0]; llvm::sys::PrintStackTraceOnErrorSignal(ToolName); llvm::PrettyStackTraceProgram X(argc, argv); |