sakhnik / nvim-gdb

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

Handle request to jump to line 0 #175

Closed davxy closed 2 years ago

davxy commented 2 years ago

Under some extraordinary conditions (in my case a bug in lldb) the debugger may request to jump to line 0 while vim buffers start from line 1.

This fix prevents an out of bounds access to the vim buffer

sakhnik commented 2 years ago

While the fix makes sense, I wonder what was the LLDB output that was parsed as line=0? What if there's another bug in the regex? Could you please rerun the test with the environment variable CI=1, and provide the log files generated?