diff: mdb bug fix
Fergus Henderson
fjh at cs.mu.OZ.AU
Fri Feb 5 03:58:35 AEDT 1999
Estimated hours taken: 0.5
Fix a bug reported by Peter Ross <petdr at cs.mu.OZ.AU>
where mdb was sometimes failing to stop at breakpoints.
trace/mercury_trace_spy.c:
Fix a bug -- the sense of the comparison argument to MR_bsearch()
was inverted.
Index: trace/mercury_trace_spy.c
===================================================================
RCS file: /home/mercury1/repository/mercury/trace/mercury_trace_spy.c,v
retrieving revision 1.1
diff -u -r1.1 mercury_trace_spy.c
--- mercury_trace_spy.c 1998/10/16 06:20:21 1.1
+++ mercury_trace_spy.c 1999/02/04 16:51:57
@@ -42,7 +42,7 @@
bool found;
MR_bsearch(MR_spied_proc_next, slot, found,
- (Unsigned) entry - (Unsigned) MR_spied_procs[slot].spy_proc);
+ (Unsigned) MR_spied_procs[slot].spy_proc - (Unsigned) entry);
if (found) {
return slot;
} else {
--
Fergus Henderson <fjh at cs.mu.oz.au> | "Binaries may die
WWW: <http://www.cs.mu.oz.au/~fjh> | but source code lives forever"
PGP: finger fjh at 128.250.37.3 | -- leaked Microsoft memo.
More information about the developers
mailing list