2021-10-03 16:12:43 +02:00
|
|
|
set confirm off
|
|
|
|
set breakpoint pending on
|
|
|
|
set print pretty on
|
|
|
|
set auto-load safe-path /
|
2021-10-08 11:09:48 +02:00
|
|
|
set auto-load python-scripts on
|
|
|
|
set auto-load local-gdbinit
|
|
|
|
set pagination off
|
2021-10-11 12:42:14 +02:00
|
|
|
set logging on
|
|
|
|
set logging overwrite on
|
2021-10-08 11:09:48 +02:00
|
|
|
set mi-async on
|
|
|
|
set non-stop off
|
2021-10-03 16:12:43 +02:00
|
|
|
|
|
|
|
# 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
|