From: Rafael Garcia-Suarez Date: Wed, 14 Sep 2005 01:08:22 +0000 (+0000) Subject: The debugger wasn't tracing correctly execution in eval("")'ed X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=e66cf94c7069ec9c7bdb94d5438988fe7012771f;p=p5sagit%2Fp5-mst-13.2.git The debugger wasn't tracing correctly execution in eval("")'ed code containing #line directives p4raw-id: //depot/perl@25409 --- diff --git a/toke.c b/toke.c index ae39bcf..760f978 100644 --- a/toke.c +++ b/toke.c @@ -664,6 +664,39 @@ S_incline(pTHX_ char *s) ch = *t; *t = '\0'; if (t - s > 0) { + const char *cf = CopFILE(PL_curcop); + if (cf && strlen(cf) > 7 && strnEQ(cf, "(eval ", 6)) { + /* must copy *{"::_<(eval N)[oldfilename:L]"} + * to *{"::_