Extract remote debugging logic from PlatformMacOSX and move it into PlatformRemoteMacOSX so it can benefit from all the logic necessary for remote debugging. Until now, remote macOS debugging was treated almost identical to local macOS debugging. By moving in into its own class, we can have it inherit from PlatformRemoteDarwinDevice and all the functionality it provides, such as looking at the correct DeviceSupport directory. rdar://68167374 Differential revision: https://reviews.llvm.org/D92452
17 lines
224 B
C
17 lines
224 B
C
#include <stdio.h>
|
|
#include <unistd.h>
|
|
|
|
int main(int argc, char **argv) {
|
|
FILE *f = fopen(argv[1], "wx");
|
|
if (f) {
|
|
fputs("\n", f);
|
|
fflush(f);
|
|
fclose(f);
|
|
} else {
|
|
return 1;
|
|
}
|
|
|
|
pause();
|
|
return 0;
|
|
}
|