mirror of
https://github.com/llvm/llvm-project.git
synced 2025-05-10 13:56:06 +00:00

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
22 lines
309 B
C
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;
|
|
}
|