* doc/README.macros (GC_DUMP_REGULARLY): Document.
* misc.c (GC_dump_regularly): Turn on by default if GC_DUMP_REGULARLY
macro defined (but not NO_DEBUGGING) - useful for embedded environments.
* misc.c (GC_init): Skip "GC_DUMP_REGULARLY" environments variable check
if GC_dump_regularly already set by the corresponding macro (only if not
NO_DEBUGGING).
NO_DEBUGGING Removes GC_dump and the debugging routines it calls.
Reduces code size slightly at the expense of debuggability.
+GC_DUMP_REGULARLY Generate regular debugging dumps.
+
DEBUG_THREADS Turn on printing additional thread-support debugging
information.
#endif
#ifndef NO_DEBUGGING
- GC_INNER GC_bool GC_dump_regularly = FALSE;
+# ifdef GC_DUMP_REGULARLY
+ GC_INNER GC_bool GC_dump_regularly = TRUE;
/* Generate regular debugging dumps. */
+# else
+ GC_INNER GC_bool GC_dump_regularly = FALSE;
+# endif
#endif
#ifdef KEEP_BACK_PTRS
}
# endif
# endif /* !SMALL_CONFIG */
-# ifndef NO_DEBUGGING
+# if !defined(NO_DEBUGGING) && !defined(GC_DUMP_REGULARLY)
if (0 != GETENV("GC_DUMP_REGULARLY")) {
GC_dump_regularly = TRUE;
}