On Sunday 17 April 2005 10:11, Leopold Toetsch wrote:
> > Log:
> > - show backtrace in real_exception if debug mode is turned on
> Shouldn't that be on always?
That's the question. There were a some test failures due to the changed
output. I'll simply adjust the tests...
> > +Null PMC access in invoke\(\)
> > +current instr\.: 'd' pc \d+
> > +called from Sub 'c' pc \d+
> Good. Could you include source line information here too? See also
> src/warnings.c: print_pbc_location() and find_line().
Good idea. The main reason why I invented this was, that the filenames are
wrong for included files, so I was unable to locate failure locations in a
large program.
I tried to fix the wrong filenames, but had no success yet. The line numbers
seem to be correct, though.
I've attached "a.imc" and "b.imc", if you run ./parrot -t a.imc, the wrong
filenames are shown. Do you have any clue what could be wrong?
jens
.sub a1
print "a1\n"
$P0 = new Integer
$P0."b1"()
.end
.include "b.imc"
.sub a2
print "a2\n"
.end
.namespace ["Integer"]
#
#
# some lines to increase the line numbers in this (included) file
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
.sub b1
print "b1\n"
a2()
.end