testsuite, threads: fix LD_LIBRARY_PATH in 'tls-sepdebug.exp'
[binutils-gdb.git] / gprof / gen-c-prog.awk
blobc66cf45d0becc7ba006fa84439979aed2716b0ba
1 NR == 1 {
2 FS="\"";
3 print "/* ==> Do not modify this file!! It is created automatically"
4 printf " from %s using the gen-c-prog.awk script. <== */\n\n", FILE
5 print "#include <stdio.h>"
6 print "#include \"ansidecl.h\""
10 if (curfun != FUNCTION)
12 if (curfun)
13 print "}"
14 curfun = FUNCTION
15 print ""
16 print "void ", FUNCTION, "(FILE *);"
17 print "void";
18 printf "%s (FILE *file)\n", FUNCTION
19 print "{";
21 printf " fputs (\"";
22 for (i = 1; i < NF; i++)
23 printf "%s\\\"", $i;
24 printf "%s\\n\", file);\n", $NF;
27 END { print "}" }