[m-rev.] diff: MMC_TABLE_CDEBUG

Zoltan Somogyi zs at cs.mu.OZ.AU
Mon Nov 4 15:30:19 AEDT 2002


tools/lmc:
	Add support for automatically enabling low level debugging of tabling
	operations.

Zoltan.

Index: lmc
===================================================================
RCS file: /home/mercury1/repository/mercury/tools/lmc,v
retrieving revision 1.10
diff -u -b -r1.10 lmc
--- lmc	6 Sep 2002 06:05:06 -0000	1.10
+++ lmc	2 Oct 2002 18:47:35 -0000
@@ -24,7 +24,9 @@
 #
 # You can also ask the script to enable low level debugging of the generated
 # code by setting the environment variable MMC_LOWLEVEL_DEBUG to the string
-# "true".
+# "true", and you can ask it to enable low level debugguing of tabling
+# operations by setting the environment variable MMC_TABLE_CDEBUG to the same
+# string.
 #
 # You can ask for additional C flags to compile with by setting the environment
 # variable MMC_ADDED_CFLAGS to those flags. Setting up this environment
@@ -69,6 +71,11 @@
 if test "$MMC_LOWLEVEL_DEBUG" != ""
 then
 	CDEBUG_FLAGS="$CDEBUG_FLAGS --cflags -DMR_LOWLEVEL_DEBUG"
+fi
+
+if test "$MMC_TABLE_DEBUG" != ""
+then
+	CDEBUG_FLAGS="$CDEBUG_FLAGS --cflags -DMR_TABLE_DEBUG"
 fi
 
 if test "$MMC_ADDED_CFLAGS" != ""
--------------------------------------------------------------------------
mercury-reviews mailing list
post:  mercury-reviews at cs.mu.oz.au
administrative address: owner-mercury-reviews at cs.mu.oz.au
unsubscribe: Address: mercury-reviews-request at cs.mu.oz.au Message: unsubscribe
subscribe:   Address: mercury-reviews-request at cs.mu.oz.au Message: subscribe
--------------------------------------------------------------------------



More information about the reviews mailing list