File tree Expand file tree Collapse file tree 3 files changed +10
-3
lines changed Expand file tree Collapse file tree 3 files changed +10
-3
lines changed Original file line number Diff line number Diff line change 296
296
297
297
@static if VERSION ≥ v " 1.12.0-DEV.173"
298
298
299
- function getlastline (arg)
300
- debuginfo = linetable (arg )
299
+ getlastline (arg) = getlastline (linetable ( arg) )
300
+ function getlastline (debuginfo :: Core.DebugInfo )
301
301
while true
302
302
ltnext = debuginfo. linetable
303
303
ltnext === nothing && break
Original file line number Diff line number Diff line change 146
146
cframe, pc = debug_command (frame, :sg )
147
147
# Aside: generators can have `Expr(:line, ...)` in their line tables, test that this is OK
148
148
lt = JuliaInterpreter. linetable (cframe, 2 )
149
- @test isexpr (lt, :line ) || isa (lt, Core. LineInfoNode)
149
+ @test isexpr (lt, :line ) || isa (lt, Core. LineInfoNode) ||
150
+ (isdefined (Base. IRShow, :LineInfoNode ) && isa (lt, Base. IRShow. LineInfoNode))
150
151
@test isa (pc, BreakpointRef)
151
152
@test JuliaInterpreter. scopeof (cframe). name === :generatedfoo
152
153
cframe, pc = debug_command (cframe, :finish )
Original file line number Diff line number Diff line change 31
31
32
32
# # For running interpreter frames under resource limitations
33
33
34
+ if isdefined (Base. IRShow, :LineInfoNode )
35
+ struct Aborted # for signaling that some statement or test blocks were interrupted
36
+ at:: Base.IRShow.LineInfoNode
37
+ end
38
+ else
34
39
struct Aborted # for signaling that some statement or test blocks were interrupted
35
40
at:: Core.LineInfoNode
36
41
end
42
+ end
37
43
38
44
function Aborted (frame:: Frame , pc)
39
45
lineidx = JuliaInterpreter. codelocs (frame, pc)
You can’t perform that action at this time.
0 commit comments