23 lines
545 B
Text
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
|