[m-dev.] diff: Fix bug with --enable-decl-debug but no tracing
Mark Anthony BROWN
dougl at cs.mu.OZ.AU
Mon Apr 19 18:12:41 AEST 1999
Estimated hours taken: 1
util/mkinit.c:
Don't refer to MR_edt_root_node in the *_init.c files unless
the `-t' option is given. This avoids a link error when the
compiler is configured for declarative debugging, but is
invoked without tracing on.
Cheers,
Mark.
Index: util/mkinit.c
===================================================================
RCS file: /home/mercury1/repository/mercury/util/mkinit.c,v
retrieving revision 1.48
diff -u -r1.48 mkinit.c
--- mkinit.c 1999/04/14 14:09:22 1.48
+++ mkinit.c 1999/04/19 06:48:52
@@ -162,7 +162,11 @@
" #endif\n"
"#endif\n"
"#ifdef MR_USE_DECLARATIVE_DEBUGGER\n"
+ " #if MR_TRACE_ENABLED\n"
" MR_address_of_edt_root_node = MR_edt_root_node;\n"
+ " #else\n"
+ " MR_address_of_edt_root_node = NULL;\n"
+ " #endif\n"
"#endif\n"
"#if MR_TRACE_ENABLED\n"
" MR_trace_func_ptr = MR_trace_real;\n"
--
Mark Brown (dougl at cs.mu.oz.au) )O+ | For Microsoft to win,
MEngSc student, | the customer must lose
Dept of Computer Science, Melbourne Uni | -- Eric S. Raymond
--------------------------------------------------------------------------
mercury-developers mailing list
Post messages to: mercury-developers at cs.mu.oz.au
Administrative Queries: owner-mercury-developers at cs.mu.oz.au
Subscriptions: mercury-developers-request at cs.mu.oz.au
--------------------------------------------------------------------------
More information about the developers
mailing list