mirror of
https://github.com/Mercury-Language/mercury.git
synced 2026-04-27 23:34:52 +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.
58 lines
1.2 KiB
Plaintext
58 lines
1.2 KiB
Plaintext
1: 1 1 CALL pred gcf:main/2-0 (cc_multi) gcf.m:8
|
|
mdb> echo on
|
|
Command echo enabled.
|
|
mdb> register --quiet
|
|
mdb> break a
|
|
0: + stop interface pred gcf:a/1-0 (nondet)
|
|
mdb> continue
|
|
3: 2 2 CALL pred gcf:a/1-0 (nondet) gcf.m:26 (gcf.m:10)
|
|
mdb> finish
|
|
23: 2 2 EXIT pred gcf:a/1-0 (nondet) gcf.m:26 (gcf.m:10)
|
|
mdb> dd
|
|
a(11)
|
|
Valid? no
|
|
g(2)
|
|
Valid? yes
|
|
c(2, 11)
|
|
Valid? yes
|
|
f(11)
|
|
Valid? yes
|
|
Found incorrect contour:
|
|
a(11)
|
|
Is this a bug? yes
|
|
23: 2 2 EXIT pred gcf:a/1-0 (nondet) gcf.m:26 (gcf.m:10)
|
|
mdb> continue
|
|
24: 2 2 REDO pred gcf:a/1-0 (nondet) gcf.m:26 (gcf.m:10)
|
|
mdb> finish
|
|
30: 2 2 EXIT pred gcf:a/1-0 (nondet) gcf.m:26 (gcf.m:10)
|
|
mdb> dd
|
|
a(12)
|
|
Valid? no
|
|
c(2, 12)
|
|
Valid? yes
|
|
f(12)
|
|
Valid? yes
|
|
Found incorrect contour:
|
|
a(12)
|
|
Is this a bug? yes
|
|
30: 2 2 EXIT pred gcf:a/1-0 (nondet) gcf.m:26 (gcf.m:10)
|
|
mdb> continue
|
|
31: 2 2 REDO pred gcf:a/1-0 (nondet) gcf.m:26 (gcf.m:10)
|
|
mdb> finish
|
|
42: 2 2 EXIT pred gcf:a/1-0 (nondet) gcf.m:26 (gcf.m:10)
|
|
mdb> dd
|
|
a(20)
|
|
Valid? no
|
|
g(3)
|
|
Valid? yes
|
|
c(3, 20)
|
|
Valid? yes
|
|
f(20)
|
|
Valid? yes
|
|
Found incorrect contour:
|
|
a(20)
|
|
Is this a bug? yes
|
|
42: 2 2 EXIT pred gcf:a/1-0 (nondet) gcf.m:26 (gcf.m:10)
|
|
mdb> continue
|
|
yes(20)
|