On Thu, Apr 28, 2005 at 02:14:17PM +0200, Leopold Toetsch wrote:
> Nicholas Clark <[EMAIL PROTECTED]> wrote:
>
> > (gdb) p interpreter->exceptions
> > $5 = (struct parrot_exception_t *) 0x0
>
> > what should have initialised that?
>
> An exception structure is created per entering a run-loop, se
Nicholas Clark <[EMAIL PROTECTED]> wrote:
> (gdb) p interpreter->exceptions
> $5 = (struct parrot_exception_t *) 0x0
> what should have initialised that?
An exception structure is created per entering a run-loop, see:
src/inter_runc.c:runops(). You can either create your own exception
setup/hand
In exceptions.c, real_exception has:
{
STRING *msg;
Parrot_exception *the_exception = interpreter->exceptions;
...
/*
* FIXME classify errors
*/
the_exception->severity = EXCEPT_error;
which goes BOOM:
Program received signal EXC_BAD_ACCESS, Could not access memory.