[Lldb-commits] [PATCH] D92452: [lldb] Treat remote macOS debugging like any other remote darwin platform

Greg Clayton via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Wed Dec 2 16:17:47 PST 2020


clayborg added inline comments.


================
Comment at: lldb/source/Plugins/Platform/MacOSX/PlatformMacOSX.cpp:98-99
+PlatformSP PlatformMacOSX::CreateInstance(bool force, const ArchSpec *arch) {
+  // The only time we create an instance is when we are creating a remote
+  // macosx platform which is handled by PlatformRemoteMacOSX.
+  return PlatformSP();
----------------
Where again do we create the host platform then?


================
Comment at: lldb/test/API/commands/platform/sdk/main.c:4-6
+  for (int i = 0; i != 10; ++i) {
+    sleep(10);
+  }
----------------
You can call pause() which will stop and wait for a signal to be delivered to the program if you don't want to call sleep. When the debugger attaches, this will cause the pause() to exit when you continue the process.


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D92452/new/

https://reviews.llvm.org/D92452



More information about the lldb-commits mailing list