trivial diff: fix mdb bug with detailed stack traces
Fergus Henderson
fjh at cs.mu.OZ.AU
Mon Feb 8 22:18:11 AEDT 1999
Fix a bug that was causing mdb's detailed stack traces to come out
incorrectly on some occaisions. (The test case for this bug fix is
tests/debugger/queens.)
runtime/mercury_stack_trace.c:
Fix a bug: `maybe_from_full' should have type `Integer', not `Word'.
Index: runtime/mercury_stack_trace.c
===================================================================
RCS file: /home/mercury1/repository/mercury/runtime/mercury_stack_trace.c,v
retrieving revision 1.24
diff -u -r1.24 mercury_stack_trace.c
--- mercury_stack_trace.c 1998/12/17 13:36:59 1.24
+++ mercury_stack_trace.c 1999/02/08 11:09:11
@@ -382,7 +382,8 @@
if (base_sp != NULL && base_curfr != NULL) {
bool print_details = FALSE;
if (MR_ENTRY_LAYOUT_HAS_EXEC_TRACE(entry)) {
- Word maybe_from_full = entry->MR_sle_maybe_from_full;
+ Integer maybe_from_full =
+ entry->MR_sle_maybe_from_full;
if (maybe_from_full > 0) {
/*
** for procedures compiled with shallow
--
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