sakhnik / nvim-gdb

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

Current line not shown when a hardware watch is triggered in GDB #161

Closed ammen99 closed 2 years ago

ammen99 commented 2 years ago

Hello,

I have just set up this plugin and I love it! However, I noticed something strange, when I set up a watchpoint in gdb with watch <X> then when <X> changes, in the gdb terminal I can of course see that the watched variable has changed. However, in the window where the source code is displayed, the current line is not marked as usual. Is this something by design, missing functionality, or something I have misconfigured? Thanks in advace.

sakhnik commented 2 years ago

Hi! I'm not sure whether this is a bug. Could you please record a showcase with asciinema?

ammen99 commented 2 years ago

Yes, here it is: https://asciinema.org/a/aO29TGEgNXGSGdgDrMRMJfmv7

Before opening vim, I have already compiled the source code with gcc test.c -o test -g. Everything else is visible in the recording.

sakhnik commented 2 years ago

Thanks, yes, that's a bug. I'll look into it.

ammen99 commented 2 years ago

@sakhnik I just tested https://github.com/sakhnik/nvim-gdb/commit/505b7b6c044fb4b2d1dbd903bec0024410589719, seems to work, thanks!

sakhnik commented 2 years ago

@ammen99, well, I've just discovered that some tests fail in neovim-0.6. I'll need to investigate those failures before officially releasing the fix.