sakhnik / nvim-gdb

Neovim thin wrapper for GDB, LLDB, PDB/PDB++ and BashDB
723 stars 39 forks source link

gdb attach mode #197

Closed winter-loo closed 1 year ago

winter-loo commented 1 year ago

how could I use this plugin to attach to a running process?

On command line, I could issue a shell command:

gdb -p 12345

or inside gdb shell:

(gdb) attach 12345

It seems that this plugin does not have gdb-attach feature yet.

sakhnik commented 1 year ago

Doesn't this work?

:GdbStart gdb -p 12345

Or just :GdbStart gdb then attach 12345 in the gdb CLI?