dotfiles/gdb/.gdbinit.d/init

24 lines
543 B
Text
Raw Normal View History

set confirm off
set breakpoint pending on
set print pretty on
set auto-load safe-path /
set auto-load python-scripts on
set auto-load local-gdbinit
set pagination off
set logging on
set logging overwrite on
set mi-async on
set non-stop 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