Skip Menu |

This queue is for tickets about the Object-Pad CPAN distribution.

Report information
The Basics
Id: 132413
Status: resolved
Priority: 0/
Queue: Object-Pad

People
Owner: Nobody in particular
Requestors: leonerd-cpan [...] leonerd.org.uk
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: 0.24



Subject: Devel::MAT cannot see line number of `method`s
A regular `sub`: Show quoted text
pmat> show 0x5635d56841d0
CODE(PP,closure) at 0x5635d56841d0 with refcount 1 ... location=t/31pad-outside.t line 41 A `method`: Show quoted text
pmat> show 0x563e600291d0
... location=t/31pad-outside.t Likely has to do with the optree structure not starting with an OP_NEXTSTATE in the right arrangement. https://metacpan.org/source/PEVANS/Devel-MAT-Dumper-0.41/lib/Devel/MAT/Dumper.xs#L549-550 if(start->op_type == OP_NEXTSTATE) line = CopLINE((COP*)start); -- Paul Evans
Easy fix -- Paul Evans
Subject: rt132413.patch
=== modified file 'lib/Object/Pad.xs' --- old/lib/Object/Pad.xs 2020-04-23 16:53:40 +0000 +++ new/lib/Object/Pad.xs 2020-04-23 19:06:27 +0000 @@ -1191,8 +1191,9 @@ repr = REPR_NATIVE; slotops = op_append_list(OP_LINESEQ, slotops, - newMETHSTARTOP(0, repr) - ); + newSTATEOP(0, NULL, NULL)); + slotops = op_append_list(OP_LINESEQ, slotops, + newMETHSTARTOP(0, repr)); int i; for(i = 0; i < nslots; i++) {