dotfiles/gdb/.gdbinit.d/init

18 lines
407 B
Plaintext

set confirm off
set breakpoint pending on
set print pretty on
set auto-load safe-path /
set logging off
# Adapted to use neovim from https://github.com/cyrus-and/gdb-dashboard/issues/20
define vo
python
import os
sal = gdb.selected_frame().find_sal()
current_line = sal.line
if current_line != 0:
openInNvim = "nvr +" + str(current_line) + " " + sal.symtab.fullname()
os.system(openInNvim)
end
end