lua-gdb
lua-gdb copied to clipboard
gdb extension for lua5.3+
* compile lua with debug symbols ``` cd lua-5.3.6 make linux CFLAGS=-g ``` ``` make[1]: Entering directory '/home/luarocks/.lua/src/lua-5.3.6/src' make all SYSCFLAGS="-DLUA_USE_LINUX" SYSLIBS="-Wl,-E -ldl -lreadline" make[2]: Entering directory '/home/luarocks/.lua/src/lua-5.3.6/src' make[2]: Nothing...
gdb 编译的python 版本是2, 出现以下错误 File "lua-gdb.py", line 352 yield str(2*i), i SyntaxError: 'return' with argument inside generator
I wanted to ask what is the compatibility with later versions of gdb. In addition are there any instructions on how to test if it works?