[m-rev.] for post-commit review: print trail state in mdb

Zoltan Somogyi zs at csse.unimelb.edu.au
Tue Jun 10 13:45:48 AEST 2008


On 10-Jun-2008, Julien Fischer <juliensf at csse.unimelb.edu.au> wrote:
> +MR_Unsigned
> +MR_num_trail_entries(void)
> +{
> +#if defined(MR_THREAD_SAFE)
> +    return MR_trail_ptr -
> +        (MR_trailEntry *) MR_CONTEXT(MR_ctxt_trailzone)->MR_zone_min;
 +#else
> +    return MR_trail_ptr - (MR_TrailEntry *) MR_trail_zone->MR_zone_min;
> +#endif /* ! MR_THREAD_SAFE */
> +}
> +

Shouldn't there be a macro that expands to either

	MR_CONTEXT(MR_ctxt_trailzone)

or

	MR_trail_zone

depending on MR_THREAD_SAFE?

Zoltan.
--------------------------------------------------------------------------
mercury-reviews mailing list
Post messages to:       mercury-reviews at csse.unimelb.edu.au
Administrative Queries: owner-mercury-reviews at csse.unimelb.edu.au
Subscriptions:          mercury-reviews-request at csse.unimelb.edu.au
--------------------------------------------------------------------------



More information about the reviews mailing list