Files
clang-p2996/lldb/test/API/tools/lldb-server/attach-wait/shim.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

11 lines
179 B
C++

#include "attach.h"
#include <cstdio>
#include <unistd.h>
int main(int argc, char *argv[]) {
lldb_enable_attach();
execvp(argv[1], argv+1);
perror("execlp");
return 1;
}