[Lldb-commits] [lldb] d900b75 - [lldb] Fix windows build for fa5fa63fd140f
Pavel Labath via lldb-commits
lldb-commits at lists.llvm.org
Wed Oct 21 08:54:25 PDT 2020
Author: Pavel Labath
Date: 2020-10-21T17:51:11+02:00
New Revision: d900b755ed003967d1c9675b62293414831db1b6
URL: https://github.com/llvm/llvm-project/commit/d900b755ed003967d1c9675b62293414831db1b6
DIFF: https://github.com/llvm/llvm-project/commit/d900b755ed003967d1c9675b62293414831db1b6.diff
LOG: [lldb] Fix windows build for fa5fa63fd140f
Added:
Modified:
lldb/tools/lldb-server/lldb-gdbserver.cpp
Removed:
################################################################################
diff --git a/lldb/tools/lldb-server/lldb-gdbserver.cpp b/lldb/tools/lldb-server/lldb-gdbserver.cpp
index 0fbb13800bf7..9b8c67af14db 100644
--- a/lldb/tools/lldb-server/lldb-gdbserver.cpp
+++ b/lldb/tools/lldb-server/lldb-gdbserver.cpp
@@ -451,10 +451,12 @@ int main_gdbserver(int argc, char *argv[]) {
reverse_connect = Args.hasArg(OPT_reverse_connect);
attach_target = Args.getLastArgValue(OPT_attach).str();
if (Args.hasArg(OPT_pipe)) {
- if (!llvm::to_integer(Args.getLastArgValue(OPT_pipe), unnamed_pipe)) {
+ uint64_t Arg;
+ if (!llvm::to_integer(Args.getLastArgValue(OPT_pipe), Arg)) {
WithColor::error() << "invalid '--pipe' argument\n" << HelpText;
return 1;
}
+ unnamed_pipe = (pipe_t)Arg;
}
if (Args.hasArg(OPT_fd)) {
if (!llvm::to_integer(Args.getLastArgValue(OPT_fd), connection_fd)) {
More information about the lldb-commits
mailing list