[Lldb-commits] [PATCH] D33213: Use socketpair on all Unix platforms

Demi Marie Obenour via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Fri Jul 14 14:18:00 PDT 2017


DemiMarie updated this revision to Diff 106708.
DemiMarie added a comment.

Make --fd an alias for --pipe


https://reviews.llvm.org/D33213

Files:
  source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp
  tools/lldb-server/lldb-gdbserver.cpp


Index: tools/lldb-server/lldb-gdbserver.cpp
===================================================================
--- tools/lldb-server/lldb-gdbserver.cpp
+++ tools/lldb-server/lldb-gdbserver.cpp
@@ -97,6 +97,7 @@
     {"attach", required_argument, NULL, 'a'},
     {"named-pipe", required_argument, NULL, 'N'},
     {"pipe", required_argument, NULL, 'U'},
+    {"fd", required_argument, NULL, 'F'},
     {"native-regs", no_argument, NULL,
      'r'}, // Specify to use the native registers instead of the gdb defaults
            // for the architecture.  NOTE: this is a do-nothing arg as it's
@@ -401,6 +402,7 @@
       break;
 
     case 'U': // unnamed pipe
+    case 'F':
       if (optarg && optarg[0])
         unnamed_pipe_fd = StringConvert::ToUInt32(optarg, -1);
       break;
Index: source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp
===================================================================
--- source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp
+++ source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp
@@ -3287,7 +3287,7 @@
   }
   return error;
 }
-#if defined(__APPLE__)
+#ifndef _WIN32
 #define USE_SOCKETPAIR_FOR_LOCAL_CONNECTION 1
 #endif
 


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D33213.106708.patch
Type: text/x-patch
Size: 1178 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20170714/f19ae31b/attachment-0001.bin>


More information about the lldb-commits mailing list