Skip to content

Commit

Permalink
Merge pull request #127 from simeonschaub/sds/fix_126
Browse files Browse the repository at this point in the history
adapt to linetable changes in Julia nightly
  • Loading branch information
pfitzseb authored Sep 30, 2024
2 parents 7068642 + b4ed757 commit db31af9
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions src/Infiltrator.jl
Original file line number Diff line number Diff line change
Expand Up @@ -882,11 +882,15 @@ function find_first_topelevel_scope(bt::Vector{<:Union{Base.InterpreterIP,Ptr{Cv
ind = findfirst(st) do frame
linfo = frame.linfo
if linfo isa Core.CodeInfo
linetable = linfo.linetable
if isa(linetable, Vector) && length(linetable) 1
lin = first(linetable)
if isa(lin, Core.LineInfoNode) && lin.method === StackTraces.top_level_scope_sym
return true
@static if hasfield(Core.CodeInfo, :debuginfo)
linfo.debuginfo.def === StackTraces.top_level_scope_sym && return true
else
linetable = linfo.linetable
if isa(linetable, Vector) && length(linetable) 1
lin = first(linetable)
if isa(lin, Core.LineInfoNode) && lin.method === StackTraces.top_level_scope_sym
return true
end
end
end
else
Expand Down

0 comments on commit db31af9

Please sign in to comment.