Mercurial > emacs
comparison etc/compilation.txt @ 61425:6dfecf2a19ab
* compilation.txt (symbol): Added gcov-file
gcov-bb-file gcov-never-called-line gcov-called-line .
* progmodes/compile.el (compilation-error-regexp-alist-alist): Add
regexp for gcov.
author | Masatake YAMATO <jet@gyve.org> |
---|---|
date | Sun, 10 Apr 2005 06:19:31 +0000 |
parents | f81ffb9e961b |
children | b8929a75abe8 146c086df160 |
comparison
equal
deleted
inserted
replaced
61424:ad05d91d3598 | 61425:6dfecf2a19ab |
---|---|
339 /usr/src/foo/foo.c(9): error: w is used before set | 339 /usr/src/foo/foo.c(9): error: w is used before set |
340 strcmp: variable # of args. llib-lc(359) :: /usr/src/foo/foo.c(8) | 340 strcmp: variable # of args. llib-lc(359) :: /usr/src/foo/foo.c(8) |
341 bloofle defined( /users/wolfgang/foo.c(4) ), but never used | 341 bloofle defined( /users/wolfgang/foo.c(4) ), but never used |
342 | 342 |
343 | 343 |
344 * GCOV (test coverage program) | |
345 | |
346 symbol: gcov-file gcov-bb-file gcov-never-called-line gcov-called-line | |
347 | |
348 -: 0:Source:foo.c | |
349 -: 0:Object:foo.bb | |
350 -: 1:/* $ gcc -fprofile-arcs -ftest-coverage foo.c | |
351 -: 2: $ ./a.out | |
352 -: 3: $ gcov foo.c | |
353 -: 4: LANG=C gcov foo.c | |
354 -: 5: 62.50% of 8 lines executed in file foo.c | |
355 -: 6: Creating foo.c.gcov.*/ | |
356 -: 7:int | |
357 -: 8:main(int argc, char ** argv) | |
358 1: 9:{ | |
359 1: 10: int r; | |
360 1: 11: if (argc == 1) | |
361 1: 12: r = 1; | |
362 #####: 13: else if (argc == 2) | |
363 #####: 14: r = 2; | |
364 -: 15: else | |
365 #####: 16: r = 0; | |
366 1: 17: return r; | |
367 -: 18:} | |
368 | |
369 | |
344 * Directory tracking | 370 * Directory tracking |
345 | 371 |
346 Directories are matched via `compilation-directory-matcher'. Files which are | 372 Directories are matched via `compilation-directory-matcher'. Files which are |
347 not shown as full paths are searched for relative to the directory where the | 373 not shown as full paths are searched for relative to the directory where the |
348 message was issued. | 374 message was issued. |