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.
11 lines
179 B
C++
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;
|
|
}
|