Files
mercury/tests/debugger/declarative/small.exp
Mark Brown 9578ff16bb Alter the `dd' command in mdb so that it does not assume that the answer
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.
2000-08-18 10:59:40 +00:00

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