| 1 | #include "attach.h" |
|---|---|
| 2 | #include <chrono> |
| 3 | #include <fstream> |
| 4 | #include <thread> |
| 5 | |
| 6 | int main(int argc, char const *argv[]) { |
| 7 | lldb_enable_attach(); |
| 8 | |
| 9 | { |
| 10 | // Create file to signal that this process has started up. |
| 11 | std::ofstream f; |
| 12 | f.open(s: argv[1]); |
| 13 | } |
| 14 | |
| 15 | std::this_thread::sleep_for(rtime: std::chrono::seconds(60)); |
| 16 | } |
| 17 |
