mirror of
https://github.com/Mercury-Language/mercury.git
synced 2026-04-21 12:23:44 +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.
41 lines
1.2 KiB
Plaintext
41 lines
1.2 KiB
Plaintext
1: 1 1 CALL pred propositional:main/2-0 (det) propositional.m:13
|
|
mdb> echo on
|
|
Command echo enabled.
|
|
mdb> register --quiet
|
|
mdb> break a
|
|
0: + stop interface pred propositional:a/0-0 (semidet)
|
|
mdb> break b
|
|
1: + stop interface pred propositional:b/0-0 (semidet)
|
|
mdb> continue
|
|
3: 2 2 CALL pred propositional:a/0-0 (semidet) propositional.m:27 (propositional.m:10)
|
|
mdb> finish
|
|
15: 2 2 EXIT pred propositional:a/0-0 (semidet) propositional.m:27 (propositional.m:10)
|
|
mdb> dd
|
|
a
|
|
Valid? no
|
|
c
|
|
Valid? yes
|
|
Found incorrect contour:
|
|
a
|
|
Is this a bug? yes
|
|
15: 2 2 EXIT pred propositional:a/0-0 (semidet) propositional.m:27 (propositional.m:10)
|
|
mdb> continue
|
|
16: 7 2 CALL pred propositional:b/0-0 (semidet) propositional.m:29 (propositional.m:10)
|
|
mdb> finish
|
|
30: 7 2 EXIT pred propositional:b/0-0 (semidet) propositional.m:29 (propositional.m:10)
|
|
mdb> dd
|
|
b
|
|
Valid? no
|
|
f
|
|
Valid? no
|
|
i
|
|
Valid? yes
|
|
Found incorrect contour:
|
|
f
|
|
Is this a bug? yes
|
|
29: 8 3 EXIT pred propositional:f/0-0 (semidet) propositional.m:35 (propositional.m:29)
|
|
mdb> continue
|
|
30: 7 2 EXIT pred propositional:b/0-0 (semidet) propositional.m:29 (propositional.m:10)
|
|
mdb> continue
|
|
yes
|