dotfiles/gdb/.gdbinit.d/init
Sanchayan Maity c095856bba gdb: Turn on logging by default
While at it, clean up duplicate setting.
2021-10-11 17:20:00 +05:30

23 lines
543 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 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