[m-dev.] Please help... once more
Fergus Henderson
fjh at cs.mu.OZ.AU
Sat Sep 23 02:12:47 AEDT 2000
On 22-Sep-2000, Zoltan Somogyi <zs at cs.mu.OZ.AU> wrote:
> > Breakpoint 1, MR_COLLECT_filter (seqno=0, depth=4290683468, port=1356800,
> > layout=0x1520d8, path=0x16 <Address 0x16 out of bounds>,
> > stop_collecting=0xff1c84c0 "") at mercury_trace_external.c:1486
> > 1486 if (MR_collect_arguments) {
>
> This already shows several errors: the values of seqno, depth, port and path
> all look invalid.
gdb often shows invalid values for function parameters when you
set a breakpoint on a function. Often you need to step through
at least one statement until you are past the function prologue;
only then will gdb show the correct values for the function
parameters. If you've compiled with `-O' or `-O2', as is the default
for Mercury, this may take several "step" comands.
(This effect is platform-dependent.)
--
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