On Tuesday, August 16, 2016 at 5:30:57 PM UTC+3, toothpik wrote:
> On Mon, Aug 15, 2016 at 10:17:58PM -0700, carmel zuk wrote:
> > I'm trying to debug vim with gdb to learn about how vim works and maybe 
> > help with bug fixes.
> 
> > I compiled the source with 
> 
> >  export CFLAGS="-ggdb"
> 
> > But when I run 
> 
> >  gdb vim
> 
> > I get 
> >  
> >  ...
> >  Reading symbols from vim...(no debugging symbols found)...done
> 
> it sounds as if you are using a vim that's been installed -- one of the
> many things
> 
>     make install
> 
> does is to strip debug info from the executable -- if you want to run an
> unstripped vim, you need to go to the source
> 
> [installed, stripped]:
> 
> file /usr/local/bin/vim
> /usr/local/bin/vim: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), 
> dynamically linked (uses shared libs), for GNU/Linux 3.0.0, 
> BuildID[sha1]=4928e15976740cb7720b1e262f50681969dfda50, stripped
> 
> [uninstalled, unstripped]:
> 
> file ~/.build/vim/vim/src/vim
> ~/.build/vim/vim/src/vim: ELF 64-bit LSB executable, x86-64, version 1 
> (SYSV), dynamically linked (uses shared libs), for GNU/Linux 3.0.0, 
> BuildID[sha1]=4928e15976740cb7720b1e262f50681969dfda50, not stripped
> 
> so if you run
> 
>     gdb ~/.build/vim/vim/src/vim
> 
> you'll likely get a better reaction
> (you'll want to replace my directory structure with yours)

works!

this (unstripped) vim executable is created with 
    make install
?

anyway thanks a lot!

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Raspunde prin e-mail lui