dotfiles/gdb/.gdbinit.d/init
Sanchayan Maity a3197c1d02 gdb: Update settings
Enable auto loading of python scripts and other settings.
2021-10-09 13:19:43 +05:30

23 lines
545 B
Text

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 off
set mi-async on
set non-stop off
set breakpoint pending on
# 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