mirror of
https://github.com/Mercury-Language/mercury.git
synced 2026-04-24 22:04:13 +00:00
Estimated hours taken: 2.5
Alter the `dd' command in mdb so that it does not assume that the answer
to the first question asked is `no'. The question is somewhat redundant,
since the only sensible answer is `no', but I find that it gives useful
feedback about the symptom that is being diagnosed, and it makes clearer
why the following questions are asked.
browser/declarative_analyser.m:
Start analysis with a list of suspects which contains only the
topmost node of the debugging tree.
browser/declarative_debugger.m:
If the answer to the first question is something other than `no',
then end the diagnosis and report that no bugs were found.
tests/debugger/declarative/*.{inp,exp,exp2}:
Update test cases to handle the extra question.
20 lines
506 B
Plaintext
20 lines
506 B
Plaintext
1: 1 1 CALL pred small:main/2-0 (det) small.m:7
|
|
mdb> echo on
|
|
Command echo enabled.
|
|
mdb> register --quiet
|
|
mdb> break p
|
|
0: + stop interface pred small:p/1-0 (det)
|
|
mdb> continue
|
|
2: 2 2 CALL pred small:p/1-0 (det) small.m:14 (small.m:8)
|
|
mdb> finish
|
|
3: 2 2 EXIT pred small:p/1-0 (det) small.m:14 (small.m:8)
|
|
mdb> dd
|
|
p(42)
|
|
Valid? no
|
|
Found incorrect contour:
|
|
p(42)
|
|
Is this a bug? yes
|
|
3: 2 2 EXIT pred small:p/1-0 (det) small.m:14 (small.m:8)
|
|
mdb> continue
|
|
42
|