Branch: refs/heads/yves/deb_c_noline_fix
Home: https://github.com/Perl/perl5
Commit: 8f3215f4d62ee891f30cb2008ce4433b281ffdf2
https://github.com/Perl/perl5/commit/8f3215f4d62ee891f30cb2008ce4433b281ffdf2
Author: Yves Orton <demerphq@gmail.com>
Date: 2022-08-27 (Sat, 27 Aug 2022)
Changed paths:
M deb.c
Log Message:
-----------
deb.c - when PL_copline is NOLINE show 0 not 2^32-1.
NOLINE is defined to be U32_MAX (not sure why it is not 0,
as lines in files by convention are numbered from 1 so 0 should
be an illegal line number), some parts of our code explicitly
set the cop_line to be NOLINE. When we debug we should show this
as line 0, the U32_MAX value is somewhat confusing. We could also
just not show a line at all, but for now this makes more sense,
especially as the deb.c logic was using 0 when there is no curcop.