[PATCH 7/57][Arm][GAS] Add support for MVE instructions: vstr/vldr
[binutils-gdb.git] / gdb / testsuite / gdb.base / foll-fork.c
blob4d8c138bd614c8536ff7229581d6f8fd64b26b1c
1 #include <stdio.h>
2 #include <unistd.h>
3 #include <stdlib.h>
5 void callee (int i)
7 /* Any output corrupts GDB CLI expect strings.
8 printf("callee: %d\n", i); */
11 int main (void)
13 int pid;
14 int v = 5;
16 pid = fork ();
17 if (pid == 0) /* set breakpoint here */
19 v++;
20 /* printf ("I'm the child!\n"); */
21 callee (getpid ());
23 else
25 v--;
26 /* printf ("I'm the proud parent of child #%d!\n", pid); */
27 callee (getpid ());
30 exit (0); /* at exit */