Jim Ingham 7b71c0ba6c Make sure code that is in the middle of figuring out the correct architecture
on attach uses the architecture it has figured out, rather than the Target's
architecture, which may not have been updated to the correct value yet.

<rdar://problem/24632895>

llvm-svn: 261279
2016-02-18 23:58:45 +00:00

22 lines
309 B
C

#include <stdio.h>
#include <unistd.h>
#include <string.h>
void
call_me()
{
sleep(1);
}
int
main (int argc, char **argv)
{
printf ("Hello there!\n"); // Set break point at this line.
if (argc == 2 && strcmp(argv[1], "keep_waiting") == 0)
while (1)
{
call_me();
}
return 0;
}