[m-dev.] trivial diff: fix a bug in the debugger

Warwick Harvey wharvey at cs.monash.edu.au
Fri Jul 23 12:53:32 AEST 1999


Zoltann wrote:
> Estimated hours taken: 0.1
> 
> trace/mercury_trace_vars.c:
> 	Fix a bug: if you try to print a nonexistent named variable,
> 	return an error message.
> 
> tests/debugger/debugger_regs.{inp,exp}:
> 	Test for this fix.

[...]

> --- debugger_regs.exp	1999/05/27 01:01:26	1.7
> +++ debugger_regs.exp	1999/07/23 01:55:38
> @@ -5,6 +5,8 @@
>         2:      2  2 CALL pred debugger_regs:data/41-0 (det) 
>  mdb> 
>         3:      2  2 EXIT pred debugger_regs:data/41-0 (det) 
> +mdb> print NoSuchVar
> +mdb: there is such variable.

s/is such/is no such/

> --- mercury_trace_vars.c	1999/06/24 18:10:41	1.7
> +++ mercury_trace_vars.c	1999/07/22 23:32:15
> @@ -595,6 +595,10 @@
>  			}
>  		}
>  
> +		if (!found) {
> +			return "there is such variable";

Ditto.

Warwick

--------------------------------------------------------------------------
mercury-developers mailing list
Post messages to:       mercury-developers at cs.mu.oz.au
Administrative Queries: owner-mercury-developers at cs.mu.oz.au
Subscriptions:          mercury-developers-request at cs.mu.oz.au
--------------------------------------------------------------------------



More information about the developers mailing list