Files
clang-p2996/lldb/test/API/functionalities/deleted-executable/main.cpp
Pavel Labath 91ea494993 [lldb] Move lldb_enable_attach from test_common to a separate header (#139550)
test_common is force-included into every compilation, which causes
problems when we're compiling assembly code, as we were in #138805.

This avoids that as we can include the header only when it's needed.
2025-05-13 17:52:23 +02:00

17 lines
329 B
C++

#include "attach.h"
#include <chrono>
#include <fstream>
#include <thread>
int main(int argc, char const *argv[]) {
lldb_enable_attach();
{
// Create file to signal that this process has started up.
std::ofstream f;
f.open(argv[1]);
}
std::this_thread::sleep_for(std::chrono::seconds(60));
}