> @@ -385,7 +395,11 @@ gcov_read_bytes (void *buffer, unsigned count) > > unsigned read = fread (buffer, count, 1, gcov_var.file); > if (read != 1) > - return NULL; > + { > + if (feof (gcov_var.file)) > + gcov_var.error = GCOV_FILE_EOF; > + return NULL; > + }
Hello. This hunk is causing troubles when we instrument a binary and it's the first time we dump to it. See: gcc --coverage main.c && ./a.out libgcov profiling error:/home/marxin/Programming/testcases/a-main.gcda:Error writing Can you please fix it? Thanks, Martin