[m-dev.] for review: line numbers in the debugger (part 1)

Fergus Henderson fjh at cs.mu.OZ.AU
Thu Nov 11 14:41:53 AEDT 1999


On 11-Nov-1999, Zoltan Somogyi <zs at cs.mu.OZ.AU> wrote:
> 
> Support line numbers in the debugger. You now get contexts (filename:lineno
> pairs) printed in several curcumstances, and you can put breakpoints on

s/curcum/circum/

> > What is the callees vector supposed to be used for anyway?
> 
> There presence would allow us to use faster code to check at every event
> whether a breakpoint applies to that event, in the usual case that no context
> breakpoint is on a line contains a higher order call. Instead of always
> searching a separate data structure, as we now do, to check for the
> applicability of context breakpoints, the code could search this data
> structure only if the proc layout matched. Since we already search a table
> of proc layouts in order to check for plain, non-context breakpoints on
> procedures, this would have incurred no extra cost in most cases.

It would be worth including a comment along the lines of the above
paragraph in the source code somewhere, IMHO.

Cheers,
	Fergus.

-- 
Fergus Henderson <fjh at cs.mu.oz.au>  |  "I have always known that the pursuit
WWW: <http://www.cs.mu.oz.au/~fjh>  |  of excellence is a lethal habit"
PGP: finger fjh at 128.250.37.3        |     -- the last words of T. S. Garp.
--------------------------------------------------------------------------
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