Reverting callstack limits

This commit is contained in:
Bruce Hill 2018-04-12 15:23:11 -07:00
parent 93a64db494
commit 1c98e82c97
2 changed files with 6 additions and 6 deletions

View File

@ -13,18 +13,18 @@ callstack_range = function()
for i = 1, 999 do
local info = debug.getinfo(i, 'f')
if not info then
min = i - 0
min = i - 1
break
end
if info.func == ldb.run_debugger then
min = i + 0
min = i + 2
break
end
end
for i = min, 999 do
local info = debug.getinfo(i, 'f')
if not info or info.func == ldb.guard then
max = i - 0
max = i - 3
break
end
end

View File

@ -17,15 +17,15 @@ callstack_range = ->
for i=1,999 do
info = debug.getinfo(i, 'f')
if not info
min = i-0
min = i-1
break
if info.func == ldb.run_debugger
min = i+0
min = i+2
break
for i=min,999
info = debug.getinfo(i, 'f')
if not info or info.func == ldb.guard
max = i-0
max = i-3
break
return min, max