Debugging Vim with Gdb in terminal from within Vim

79 views
Skip to first unread message

Ni Va

unread,
Nov 24, 2018, 10:26:18 AM11/24/18
to vim_use
Hi all,


I attempt to use gdb in order to debug vim with gdb from gvim under windows 10 as advised by Bram in this video :
https://www.youtube.com/watch?v=fI181d1ujcc min 28:14.

Versions of :

1. gvim : 32 bit 8.1.542 build with make_msvc.bat under windows 10
2. gdb : 4.7.1.2 from mingw configured x86_64-w64-mingw32.


In the terminal window, from vim src dir, I type gdb vim and gdb says no debugging symbols found. (see joined PNG)


How to tell gdb the symbols source dir and happen to set breakpoint in vim source code ?

Thank you
NiVa

Capture.PNG

Ni Va

unread,
Nov 24, 2018, 10:33:54 AM11/24/18
to vim_use
Note that I call make_msvc.mak with DEBUG=YES

Bram Moolenaar

unread,
Nov 24, 2018, 8:19:26 PM11/24/18
to vim...@googlegroups.com, Ni Va
You can only use gdb with a binary that was build with gcc. It does not
work when it was built with MSVC. Unfortunately...

Thus you need to build with MinGW or cygwin.

--
BEDEVERE: Look! It's the old man from scene 24 - what's he Doing here?
ARTHUR: He is the keeper of the Bridge. He asks each traveler five
questions ...
GALAHAD: Three questions.
"Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD

/// Bram Moolenaar -- Br...@Moolenaar.net -- http://www.Moolenaar.net \\\
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\ an exciting new programming language -- http://www.Zimbu.org ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///

Ni Va

unread,
Nov 24, 2018, 9:44:36 PM11/24/18
to vim_use
Thank you,
so I will retry, with RUBY support (dll) not as advised by Ken...
Reply all
Reply to author
Forward
0 new messages