viruscamp / luadec

Lua Decompiler for lua 5.1 , 5.2 and 5.3
1.14k stars 343 forks source link

Add instruction ranges to locals desc in brief mode. #77

Open d0sboots opened 3 years ago

d0sboots commented 3 years ago

Currently, the only thing brief display mode of ChunkSpy shows for locals, besides their names, is the local "number," which is a basically useless value. (Nothing ever refers to local debug records by number, and you can't use them to translate to/from registers in the general case.) This patch adds the startpc/endpc instruction ranges to the brief display, which is much more useful information that can help (manually) translate registers to/from locals.