Created
November 25, 2014 11:43
-
-
Save jszakmeister/9a349ec06bbf129d3b6b to your computer and use it in GitHub Desktop.
gdbinit for Neovim (for debugging while running under LuaJIT)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set history filename .gdb-history | |
set history save on | |
set history size 2000 | |
set env LD_PRELOAD /lib/x86_64-linux-gnu/libpthread.so.0 | |
set env NVIM_PROG /home/jszakmeister/projects/neovim/build/debug/bin/nvim | |
set env VIMRUNTIME /home/jszakmeister/projects/neovim/runtime | |
path /home/jszakmeister/projects/neovim/.deps/usr/bin | |
set debug jit 1 | |
# Run tests with something like this: | |
# run -e 'package.path="/home/jszakmeister/projects/neovim/.deps/usr/share/lua/5.1/?.lua;/home/jszakmeister/projects/neovim/.deps/usr/share/lua/5.1/?/init.lua;"..package.path; package.cpath="/home/jszakmeister/projects/neovim/.deps/usr/lib/lua/5.1/?.so;"..package.cpath' -e 'local k,l,_=pcall(require,"luarocks.loader") _=k and l.add_context("busted","2.0.rc3-0")' '/home/jszakmeister/projects/neovim/.deps/usr/lib/luarocks/rocks/busted/2.0.rc3-0/bin/busted' -v -o TAP "--lpath=./build/debug/?.lua;./?.lua" test/functional |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment