luajit icon indicating copy to clipboard operation
luajit copied to clipboard

A lot of `luajit_lldb.py` enhancements

Open GitSparTV opened this issue 3 months ago • 1 comments

Dumping all my work for this script. Some stuff was changed due to formatter. Let me know what do you want me to finish to merge this.

Tested only on vscode lldb (lldb version 20.1.4-codelldb)

  • Fixed bug with unknown coro variable
  • Added support for dynamically linked luajit's
  • Dump more info about frames: frame type, frame index and traceback-like function names
  • Dump local names if possible in lj-stack
  • Add limit to frames generator in case of stack corruption.
  • Add lj-gcobj function and decompose TValue dumpers from GCobj types
  • Fix __str__ for Ptr. if self.value.value is NoneType, Python will error because you must return a string from this function
  • Minor refactoring here and there)
  • thread dump will now show if it's cur_L, mainthread and also its status
  • proto dump will now show chunkname and line info
  • Function dump will now show numparams, vararg flag for Lua functions
  • Function dump will now show symbol name for C functions and fast functions.
  • Fix bug when gcval was implemented as gcref

GitSparTV avatar Nov 11 '25 19:11 GitSparTV

Hi, @GitSparTV! Thanks for the patch!

This repo is "show case": you should open issues in tarantool/tarantool repo, and patches are reviewed in our mailing list (you can find LuaJIT-related by searching PATCH luajit). So, I suggest to close this PR and proceed in our ML.

Our team has a bunch of features to proceed first, which are blockers for your changes:

Since your patch depends on our changes, it is necessary to wait until the aforementioned patch-sets are merged in the master branch. I'll ping you here again after that.

If you won't be able to return to your patchset to rebase it on the merged ones, inform me so I can proceed with your changes by myself.

Buristan avatar Nov 24 '25 09:11 Buristan