[m-dev.] Please help... once more

Fergus Henderson fjh at cs.mu.OZ.AU
Sat Oct 14 11:43:44 AEDT 2000


On 13-Oct-2000, Erwan Jahier <Erwan.Jahier at irisa.fr> wrote:
> 
> | Oh, OK, I understand.  The reason I was confused was that I missed step (2).
> | Those calls are needed there for the same reason that they're needed
> | in MR_trace_event().  The reason is so that the use of the Mercury
> | registers by the called Mercury code doesn't stuff things up for the
> | code being debugged, as explained in trace/README.
> | 
> | But the factor of 5 seems a bit large.  Is that on x86 or on sparc?
> 
> I had another look at... You are rigth, the factor of 4 that I measured was not
> only due to the MR_copy_regs_to_saved_regs() and MR_copy_saved_regs_to_regs()
> calls.
> 
> 
> I've added a case (MR_CMD_COLLECT) in the swith on MR_trace_ctrl.MR_trace_cmd
> in MR_trace_real().
> 
> 	switch (MR_trace_ctrl.MR_trace_cmd) { 

Please send a proper diff, not just cut-and-paste extracts.

-- 
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