All Projects → mechatroner → minimal_gdb

mechatroner / minimal_gdb

Licence: other
🐛 Lightweight vim -> gdb broker which uses .gdbinit gdb config file to export breakpoints

Programming Languages

python
139335 projects - #7 most used programming language
Vim Script
2826 projects

Projects that are alternatives of or similar to minimal gdb

vim-easydebugger
A VIM multi-language debugger plugin
Stars: ✭ 47 (+193.75%)
Mutual labels:  vim-plugin, gdb
gdb-dashboard
Modular visual interface for GDB in Python
Stars: ✭ 8,699 (+54268.75%)
Mutual labels:  gdb
SimpleSnippets.vim
Simple snippet support for your Vim and Neovim
Stars: ✭ 86 (+437.5%)
Mutual labels:  vim-plugin
gdb graphs
To visualize function call flow for a C/C++ program using gdb and python
Stars: ✭ 61 (+281.25%)
Mutual labels:  gdb
clojure.vim
Clojure syntax highlighting for Vim and Neovim.
Stars: ✭ 23 (+43.75%)
Mutual labels:  vim-plugin
vim-smt2
A VIM plugin that adds support for the SMT-LIB2 format (including Z3's extensions)
Stars: ✭ 35 (+118.75%)
Mutual labels:  vim-plugin
bolt.nvim
⚡ Ultrafast multi-pane file manager for Neovim with fuzzy matching
Stars: ✭ 100 (+525%)
Mutual labels:  vim-plugin
cake.vim
Utility for CakePHP developers.
Stars: ✭ 35 (+118.75%)
Mutual labels:  vim-plugin
vim-dap
Vim/Neovim debugger plugin providing a terminal interface to the Debug Adapter Protocol
Stars: ✭ 43 (+168.75%)
Mutual labels:  vim-plugin
LeaderF-snippet
Intuitive Way to Use Snippet
Stars: ✭ 38 (+137.5%)
Mutual labels:  vim-plugin
nan vimrc
A Vim configuration for SSH client to edit on a remote Linux host.
Stars: ✭ 15 (-6.25%)
Mutual labels:  vim-plugin
dps-dial.vim
Increment/decrement plugin using denops.vim
Stars: ✭ 21 (+31.25%)
Mutual labels:  vim-plugin
kakoune-gdb
gdb integration plugin
Stars: ✭ 44 (+175%)
Mutual labels:  gdb
vim-high
Vim plugin: All-in-one highlighter, highlight custom pattern like indentation, inactive window, word under the cursor
Stars: ✭ 20 (+25%)
Mutual labels:  vim-plugin
cmp-rg
ripgrep source for nvim-cmp
Stars: ✭ 165 (+931.25%)
Mutual labels:  vim-plugin
fzf-preview.vim
fzf ❤️ preview
Stars: ✭ 49 (+206.25%)
Mutual labels:  vim-plugin
vim-colors-pencil
Light (& dark) color scheme inspired by iA Writer
Stars: ✭ 564 (+3425%)
Mutual labels:  vim-plugin
markdown-preview-sync
A quasi real-time vim markdown preview plugin | 第一款基于Java的Vim Markdown预览插件
Stars: ✭ 56 (+250%)
Mutual labels:  vim-plugin
vim-iawriter
iAwriter's Focus mode for vim
Stars: ✭ 23 (+43.75%)
Mutual labels:  vim-plugin
vim-jukit
Jupyter-Notebook inspired Neovim/Vim Plugin
Stars: ✭ 55 (+243.75%)
Mutual labels:  vim-plugin

Minimal gdb

Minimal gdb is a lightweight vim -> gdb broker which uses .gdbinit mechanism to export breakpoints from vim into gdb session.

The plugin provides <leader>b shortcut which allows user to set breakpoints while in vim. Breakpoints are added to special file which is sourced from ~/.gdbinit (this source magic will be performed on the first run). When gdb starts all breakpoints are getting exported. If you add more breakpoints after gdb was started you have to execute syncbp command in gdb to reexport breakpoints from vim. syncbp is added to gdb via the same .gdbinit magic.

The plugin doesn't provide functionality for debugging in vim window. You have to start gdb session.

The main difference from other gdb vim plugins, is that Minimal gdb uses the .gdbinit file for breakpoint export and doesn't provide functionality for debugging inside vim window.

A typical use case looks like this:

  1. Set some breakpoints in vim, they will be highlighted in the 'sign' column
  2. Run gdb, which will automatically export the breakpoints from step 1.
  3. Set some more breakpoints in vim
  4. Export them in gdb by using syncbp command, or by restarting the debugger (the former is easier).

INSTALLATION:

Copy the files to your .vim folder or use Vundle. The script will configure everything when you set a first breakpoint.

COMMANDS:

In vim:

  • MinGDBToggleBP or <leader>b - toggles a breakpoint.
  • MinGDBDeleteAll - delete all breakpoints.
  • MinGDBListAll - list all breakpoints in the quickfix window.
  • MinGDBRefreshFile - refresh breakpoints positions in a vim file. Use this in case something went wrong.

In gdb:

  • syncbp - export new breakpoints from vim, which were set after gdb session has started.

REQUIREMENTS:

  • gdb
  • python 2.7, or 3.xx
  • vim compiled with python and signs features.
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].