+void odxprint_fun(const char *fmt, ...);
+void fshow_fun(void *ignored, const char *fmt, ...);
+
+/* Flags defined in a structure to avoid code duplication between
+ * declaration and definition. */
+extern struct dyndebug_config {
+ int dyndebug_fshow;
+ int dyndebug_fshow_signal;
+ int dyndebug_gencgc_verbose;
+ int dyndebug_safepoints;
+ int dyndebug_seh;
+ int dyndebug_misc;
+ int dyndebug_pagefaults;
+ int dyndebug_backtrace_when_lost;
+ int dyndebug_sleep_when_lost;
+ int dyndebug_io;
+ int dyndebug_runtime_link;
+} dyndebug_config;
+
+#ifdef LISP_FEATURE_GENCGC
+extern int gencgc_verbose;
+#endif
+
+void dyndebug_init(void);
+
+#if QSHOW_SIGNAL_SAFE == 1 && !defined(LISP_FEATURE_WIN32)
+
+extern sigset_t blockable_sigset;
+
+#define QSHOW_BLOCK \
+ sigset_t oldset; \
+ thread_sigmask(SIG_BLOCK, &blockable_sigset, &oldset)
+#define QSHOW_UNBLOCK thread_sigmask(SIG_SETMASK,&oldset,0)
+#else
+#define QSHOW_BLOCK
+#define QSHOW_UNBLOCK
+#endif
+
+/* The following macros duplicate the expansion of odxprint, because the
+ * extra level of parentheses around `args' prevents us from
+ * implementing FSHOW in terms of odxprint directly. (They also differ
+ * in a newline.)
+ */
+
+#if QSHOW
+# define FSHOW(args) \
+ do if (dyndebug_config.dyndebug_fshow) fshow_fun args; while (0)
+# define SHOW(string) FSHOW((stderr, "/%s\n", string))
+#else
+# define FSHOW(args)
+# define SHOW(string)
+#endif
+
+#if QSHOW_SIGNALS
+# define FSHOW_SIGNAL(args) \
+ do if (dyndebug_config.dyndebug_fshow_signal) fshow_fun args; while (0)
+#else
+# define FSHOW_SIGNAL(args)
+#endif