2013-05-03 08:10:27 +08:00
|
|
|
#include <stdio.h>
|
|
|
|
|
2015-08-26 06:25:21 +08:00
|
|
|
#include <chrono>
|
|
|
|
#include <thread>
|
|
|
|
|
2013-05-03 08:10:27 +08:00
|
|
|
int main(int argc, char const *argv[]) {
|
2014-10-27 08:31:05 +08:00
|
|
|
int temp;
|
2016-01-11 18:24:50 +08:00
|
|
|
lldb_enable_attach();
|
2014-10-27 08:31:05 +08:00
|
|
|
|
2013-05-03 08:10:27 +08:00
|
|
|
// Waiting to be attached by the debugger.
|
2014-10-27 08:31:05 +08:00
|
|
|
temp = 0;
|
|
|
|
|
2013-05-03 08:10:27 +08:00
|
|
|
while (temp < 30) // Waiting to be attached...
|
|
|
|
{
|
2015-08-26 06:25:21 +08:00
|
|
|
std::this_thread::sleep_for(std::chrono::seconds(2));
|
2013-05-03 08:10:27 +08:00
|
|
|
temp++;
|
|
|
|
}
|
|
|
|
|
|
|
|
printf("Exiting now\n");
|
|
|
|
}
|