[m-rev.] diff: fix small bug when showing EDT generation stats

Ian MacLarty maclarty at cs.mu.OZ.AU
Sat Jun 11 14:14:22 AEST 2005


Estimated hours taken: 0.1
Branches: main

trace/mercury_trace_declarative.c:
	Fix a bug when printing out the EDT generation stats in the declarative
	debugger.  This error only shows up if the MR_DD_PRINT_EDT_STATS macro
	is defined.

Index: trace/mercury_trace_declarative.c
===================================================================
RCS file: /home/mercury1/repository/mercury/trace/mercury_trace_declarative.c,v
retrieving revision 1.89
diff -u -r1.89 mercury_trace_declarative.c
--- trace/mercury_trace_declarative.c	20 May 2005 05:40:37 -0000	1.89
+++ trace/mercury_trace_declarative.c	11 Jun 2005 04:09:35 -0000
@@ -2503,9 +2503,9 @@
     /*
     ** Restore the trace globals in case the called Mercury code is traced.
     */
-    MR_trace_call_seqno = event_details->MR_call_seqno;
-    MR_trace_call_depth = event_details->MR_call_depth;
-    MR_trace_event_number = event_details->MR_event_number;
+    MR_trace_call_seqno = event_details.MR_call_seqno;
+    MR_trace_call_depth = event_details.MR_call_depth;
+    MR_trace_event_number = event_details.MR_event_number;

     MR_debug_enabled = debug_enabled_before;
     MR_update_trace_func_enabled();

--------------------------------------------------------------------------
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