diff options
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/dump.lua | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/lib/dump.lua b/lib/dump.lua index a00862d0..b0a334e6 100644 --- a/lib/dump.lua +++ b/lib/dump.lua | |||
| @@ -59,8 +59,8 @@ local jutil = require("jit.util") | |||
| 59 | local vmdef = require("jit.vmdef") | 59 | local vmdef = require("jit.vmdef") |
| 60 | local funcinfo, funcbc = jutil.funcinfo, jutil.funcbc | 60 | local funcinfo, funcbc = jutil.funcinfo, jutil.funcbc |
| 61 | local traceinfo, traceir, tracek = jutil.traceinfo, jutil.traceir, jutil.tracek | 61 | local traceinfo, traceir, tracek = jutil.traceinfo, jutil.traceir, jutil.tracek |
| 62 | local tracemc, traceexitstub = jutil.tracemc, jutil.traceexitstub | 62 | local tracemc, tracesnap = jutil.tracemc, jutil.tracesnap |
| 63 | local tracesnap = jutil.tracesnap | 63 | local traceexitstub, ircalladdr = jutil.traceexitstub, jutil.ircalladdr |
| 64 | local bit = require("bit") | 64 | local bit = require("bit") |
| 65 | local band, shl, shr = bit.band, bit.lshift, bit.rshift | 65 | local band, shl, shr = bit.band, bit.lshift, bit.rshift |
| 66 | local sub, gsub, format = string.sub, string.gsub, string.format | 66 | local sub, gsub, format = string.sub, string.gsub, string.format |
| @@ -82,6 +82,10 @@ local nexitsym = 0 | |||
| 82 | -- Fill symbol table with trace exit addresses. | 82 | -- Fill symbol table with trace exit addresses. |
| 83 | local function fillsymtab(nexit) | 83 | local function fillsymtab(nexit) |
| 84 | local t = symtab | 84 | local t = symtab |
| 85 | if nexitsym == 0 then | ||
| 86 | local ircall = vmdef.ircall | ||
| 87 | for i=0,#ircall do t[ircalladdr(i)] = ircall[i] end | ||
| 88 | end | ||
| 85 | if nexit > nexitsym then | 89 | if nexit > nexitsym then |
| 86 | for i=nexitsym,nexit-1 do t[traceexitstub(i)] = tostring(i) end | 90 | for i=nexitsym,nexit-1 do t[traceexitstub(i)] = tostring(i) end |
| 87 | nexitsym = nexit | 91 | nexitsym = nexit |
