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

Jason Molenda via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Thu Dec 3 01:25:45 PST 2020


jasonmolenda added inline comments.


================
Comment at: lldb/test/API/commands/platform/sdk/main.c:4-6
+  for (int i = 0; i != 10; ++i) {
+    sleep(10);
+  }
----------------
JDevlieghere wrote:
> clayborg wrote:
> > 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.
> Oh cool, learned something new today! 
I didn't know about pause(3), pretty cool.  But I thought Jonas might have been using sleep() so that if lldb fails to ever attach, the process isn't left behind.  sleep() has the same behavior - the debugger attaches and interrupts the syscall, so this could as easily be sleep(600) and either lldb attaches within ten minutes, or the test binary exits.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D92452



More information about the lldb-commits mailing list