vgdb: Handle EAGAIN in read_buf
[valgrind.git] / none / tests / vgprintf.c
blobaee3116451a50c55c12c85e28f0007e802dedcd9
1 #include "valgrind.h"
2 #include <stdio.h>
4 int
5 main (int argc, char **argv)
7 int x = 0;
8 x += VALGRIND_PRINTF("Yo ");
9 x += VALGRIND_PRINTF("Yo ");
10 x += VALGRIND_PRINTF("Ma\n");
11 fprintf(stderr, "%d\n", x);
12 x = VALGRIND_PRINTF_BACKTRACE("Backtrace line one\nLine two:\n");
13 fprintf(stderr, "%d\n", x);
14 return 0;