From 8dc0e5739a5a69c34a42b6f52101a592724a9f24 Mon Sep 17 00:00:00 2001 From: "beard%netscape.com" Date: Mon, 18 Sep 2000 22:09:20 +0000 Subject: [PATCH] Conditionally compile in GC_trace_object. --- gc/boehm/dbg_mlc.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/gc/boehm/dbg_mlc.c b/gc/boehm/dbg_mlc.c index 85c3cbeee9ea4..84c14fc2ddaf3 100644 --- a/gc/boehm/dbg_mlc.c +++ b/gc/boehm/dbg_mlc.c @@ -155,6 +155,8 @@ ptr_t p; PRINT_CALL_CHAIN(ohdr); } +#if defined(SAVE_CALL_CHAIN) + #include "call_tree.h" #define CALL_TREE(ohdr) ((call_tree*)ohdr->oh_ci[0].ci_pc) @@ -235,7 +237,7 @@ void GC_trace_object(ptr_t p, int verbose) wend = (word*)((word)wp + scan->oh_sz); while (wp < wend) { p = (ptr_t) *wp++; - // if (verbose) GC_err_printf1("\t0x%08lX\n", p); + if (verbose) GC_err_printf1("\t0x%08lX\n", p); if (IS_PLAUSIBLE_POINTER(p)) { p = GC_base(p); if (p && GC_has_debug_info(p)) { @@ -279,6 +281,8 @@ void GC_trace_object(ptr_t p, int verbose) ENABLE_SIGNALS(); } +#endif /* SAVE_CALL_CHAIN */ + void GC_debug_print_heap_obj_proc(p) ptr_t p; {