Mercury Bugs - mercury
View Issue Details
0000045mercuryBugpublic2008-02-19 15:262008-02-20 14:03
Reportermaclarty 
Assigned Tozs 
PrioritynormalSeverityminorReproducibilityalways
StatusresolvedResolutionfixed 
PlatformOSOS Version
Product Version 
Target VersionFixed in Version 
Summary0000045: mdb not using format params from .mdbrc
DescriptionCompile the attached mdb.m in a debug grade.

Put the attached .mdbrc file in the same directory as the executable.

Run:

mdb ./mdb
Melbourne Mercury Debugger, mdb version rotd-2008-01-16.
Copyright 1998-2008 The University of Melbourne, Australia.
mdb is free software, covered by the GNU General Public License.
There is absolutely no warranty for mdb.
       1: 1 1 CALL pred mdb.main/2-0 (det) mdb.m:13
mdb> step
       2: 2 2 CALL func list.../2-0 (det) list.m:2561 (mdb.m:14)
mdb> finish
     817: 2 2 EXIT func list.../2-0 (det) list.m:2561 (mdb.m:14)
mdb> p 3
       List (arg 3)
[0, 1, 2, 3, 4, 5, 6, 7, 8, 9, ...]
mdb> source .mdbrc
mdb> p 3
       List (arg 3)
[0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21,
 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40,
 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59,
 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78,
 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97,
 98, 99, 100]
mdb>

The source command should not be necessary for the format_param commands in .mdbrc to take effect.
TagsNo tags attached.
Attached Files? .mdbrc (50) 2008-02-19 15:26
https://bugs.mercurylang.org/file_download.php?file_id=38&type=bug
? mdb.m (190) 2008-02-19 15:26
https://bugs.mercurylang.org/file_download.php?file_id=39&type=bug

Notes
(0000077)
zs   
2008-02-20 14:03   
fix committed feb 20

Issue History
2008-02-19 15:26maclartyNew Issue
2008-02-19 15:26maclartyFile Added: .mdbrc
2008-02-19 15:26maclartyFile Added: mdb.m
2008-02-19 20:24zsStatusnew => assigned
2008-02-19 20:24zsAssigned To => zs
2008-02-20 14:03zsStatusassigned => resolved
2008-02-20 14:03zsResolutionopen => fixed
2008-02-20 14:03zsNote Added: 0000077