[m-dev.] trivial diff: fix debugger segfault

Simon Taylor stayl at cs.mu.OZ.AU
Mon Aug 9 16:02:30 AEST 1999



Estimated hours taken: 0.1

trace/mercury_trace_internal.c:
	Fix a bug - `disable *' segfaulted because the wrong index variable
	was used when printing out each disabled breakpoint.


Index: mercury_trace_internal.c
===================================================================
RCS file: /home/staff/zs/imp/mercury/trace/mercury_trace_internal.c,v
retrieving revision 1.47
diff -u -u -r1.47 mercury_trace_internal.c
--- mercury_trace_internal.c	1999/08/04 02:05:34	1.47
+++ mercury_trace_internal.c	1999/08/09 05:59:32
@@ -952,7 +952,7 @@
 			int i;
 			for (i = 0; i < MR_spy_point_next; i++) {
 				MR_spy_points[i]->spy_enabled = FALSE;
-				MR_print_spy_point(n);
+				MR_print_spy_point(i);
 			}
 
 			if (MR_spy_point_next == 0) {
--------------------------------------------------------------------------
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