Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Lua Development Tools » Better LuaJIT FFI support(With cdata introspection)
Better LuaJIT FFI support [message #1041188] Sun, 14 April 2013 19:33 Go to next message
Julien Desgats is currently offline Julien DesgatsFriend
Messages: 6
Registered: August 2012
Junior Member

Since some time, I am working at a refactoring and add new features on the LDT's debugger. To start, I've refactored the introspection part, to allow to plug custom inspectors for userdata. I will explain this part in detail in a future thread.

A first application of this work is a plugin to inspect LuaJIT FFI data (called "cdata"). Is allows you to browse FFI structure, change any value, ...

To test this, you have to:

  1. Build LuaSocket from unstable (stable versions done not have LuaJIT support, yet). I may provide a Windows binary build if there is a demand for it.
  2. Replace your existing debugger.lua file by this one:
  3. Require the debugger.plugins.ffi after starting debugger, so the staring code should look like

require"debugger"("localhost", 10000)

This plugin is just a wrapper around Peter Crawley's Reflect[1] module. Many thanks to him for this wonderful library Smile

This work can also be found on my LDT fork on github[2].

This stuff is currently in alpha stage (tested only under Linux) and may contain bugs, please send your feedback if you encounter any problem. Have fun Smile


[Updated on: Fri, 17 May 2013 08:31] by Moderator

Report message to a moderator

Re: Better LuaJIT FFI support [message #1059148 is a reply to message #1041188] Fri, 17 May 2013 01:35 Go to previous message
luo dd is currently offline luo ddFriend
Messages: 6
Registered: May 2013
Junior Member
thanks alot Twisted Evil
Previous Topic:A Truly Newbie Question - How to Get Started?
Next Topic:error loading module 'stagedb.core'
Goto Forum:

Current Time: Thu Nov 26 07:11:03 GMT 2015

Powered by FUDForum. Page generated in 0.04796 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software