Add new --trace[=MODE] flags, with --trace=dir

This mode replaces the previous heuristic setting enabled with -O, where we
would log directory enter/leave for each synchronized output.  Now we only
do that if --trace=dir is given.
This commit is contained in:
Paul Smith
2013-05-13 01:30:24 -04:00
parent 5367d393dd
commit 381baeef7a
9 changed files with 102 additions and 36 deletions

8
misc.c
View File

@@ -313,10 +313,7 @@ fatal (const gmk_floc *flocp, const char *fmt, ...)
{
va_list args;
if (output_sync)
log_working_directory (1, 1);
else
log_working_directory (1, 0);
log_working_directory (1, 0);
if (flocp && flocp->filenm)
fprintf (stderr, "%s:%lu: *** ", flocp->filenm, flocp->lineno);
@@ -331,8 +328,7 @@ fatal (const gmk_floc *flocp, const char *fmt, ...)
fputs (_(". Stop.\n"), stderr);
if (output_sync)
log_working_directory (0, 1);
log_working_directory (0, 1);
die (2);
}