Use this page to discuss script 4582 Conque GDB: GDB command line interface and terminal emulator
- Add constructive comments, bug reports, or discuss improvements (see the guideline).
- Do not document the script here (the author should do that on vim.org).
- This page may be out of date: check the script's vim.org page above, and its release notes.
Problem
Vim compiled with static python support + python included in gdb.
When running this command inside Vim: ConqueGdb test
- new window is created
- this is launched:
gdb -f -x /home/user/.vim/bundle/Conque-GDB/autoload/conque_gdb/conque_gdb_gdb.py -x /home/user/.vim/bundle/Conque-GDB/autoload/conque_gdb/gdbinit_confirm.gdb test - 1 [FORMAT=unix] [TYPE=] [100%][POS=0:0/1]
- nothing in window pop ups (window is empty). --May 12, 2014
Installation problem
Conque GDB does not support installation through Vim bundle.
Download the latest conque_gdb.vmb file and install using the installation instructions given at the scripts page in the link at the top. --May 17, 2014
not bundle installation I did as you said. I've deleted ~/.vim/bundle/Conque-GDB* and installed from conque_gdb.vmb.
When I run Vim I get following:
Error detected while processing function conque_gdb#load_python..<SNR>27_get_gdb_command..<SNR>27_get_unix_gdb: line 10: E484: Cannot open file /tmp/vosS3EQ/0
In Vim when I type :ConqueGdb
I get the same result as described in "Problem".
I can get rid of this message when I change escaping to:
conque_gdb.vim:315 let l:gdb_py_support = system(l:gdb_exe . ' -q -batch -ex ''python print("PYYES")'' ')
--May 19, 2014
Question Can you give me the output of "gdb -v" and output of "vim --version"? What happens if you install conque gdb and no other plugins, e.g. with an empty .vim folder?
Answer Empting ~/.vim folder helped. While I still get this message
Error detected while processing function conque_gdb#load_python..<SNR>13_get_gdb_command..<SNR>13_get_unix_gdb:
when starting vim I get a gdb console in separate window when I type :ConqueGdb.
VIM - Vi IMproved 7.4 (2013 Aug 10, compiled May 12 2014 12:21:23) Included patches: 1-179 Modified by <bugzilla@redhat.com> Compiled by <bugzilla@redhat.com> Huge version without GUI. Features included (+) or not (-): +acl +farsi +mouse_netterm +syntax +arabic +file_in_path +mouse_sgr +tag_binary +autocmd +find_in_path -mouse_sysmouse +tag_old_static -balloon_eval +float +mouse_urxvt -tag_any_white -browse +folding +mouse_xterm -tcl ++builtin_terms -footer +multi_byte +terminfo +byte_offset +fork() +multi_lang +termresponse +cindent +gettext -mzscheme +textobjects -clientserver -hangul_input +netbeans_intg +title -clipboard +iconv +path_extra -toolbar +cmdline_compl +insert_expand +perl +user_commands +cmdline_hist +jumplist +persistent_undo +vertsplit +cmdline_info +keymap +postscript +virtualedit +comments +langmap +printer +visual +conceal +libcall +profile +visualextra +cryptv +linebreak +python +viminfo +cscope +lispindent -python3 +vreplace +cursorbind +listcmds +quickfix +wildignore +cursorshape +localmap +reltime +wildmenu +dialog_con -lua +rightleft +windows +diff +menu -ruby +writebackup +digraphs +mksession +scrollbind -X11 -dnd +modify_fname +signs -xfontset -ebcdic +mouse +smartindent -xim +emacs_tags -mouseshape -sniff -xsmp +eval +mouse_dec +startuptime -xterm_clipboard +ex_extra +mouse_gpm +statusline -xterm_save +extra_search -mouse_jsbterm -sun_workshop -xpm system vimrc file: "/etc/vimrc" user vimrc file: "$HOME/.vimrc" 2nd user vimrc file: "~/.vim/vimrc" user exrc file: "$HOME/.exrc" fall-back for $VIM: "/etc" f-b for $VIMRUNTIME: "/usr/share/vim/vim74" Compilation: gcc -c -I. -Iproto -DHAVE_CONFIG_H -O2 -g -pipe -Wall -fexceptions -fstack-protector --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1 Linking: gcc -Wl,--enable-new-dtags -Wl,-rpath,/usr/lib64/perl5/CORE -Wl,-z,relro -L/usr/local/lib -Wl,--as-needed -o vim -lm -lnsl -lselinux -lncurses -lacl -lattr -lgpm -ldl -Wl,--enable-new-dtags -Wl,-rpath,/usr/lib64/perl5/CORE -fstack-protector -L/usr/lib64/perl5/CORE -lperl -lresolv -lnsl -ldl -lm -lcrypt -lutil -lpthread -lc -L/usr/lib64/python2.7/config -lpython2.7 -lpthread -ldl -lutil -lm -Xlinker -export-dynamic GNU gdb (GDB) Fedora 7.6.1-46.fc19 Copyright (C) 2013 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html> This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "x86_64-redhat-linux-gnu". For bug reporting instructions, please see: <http://www.gnu.org/software/gdb/bugs/>.
--August 28, 2014
Suggestion What if you add the following line in your .vimrc ?
set shell=/bin/sh
Problem when running mvim
macVim provides python support. Python installed from port When running mvim -v main.cpp :
- new window is created
- this is launched:
File "<string>", line 1, in <module> File "/Users/UserName/.vim/autoload/conque_term/conque_subprocess.py", line 48, in <module> import pty File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/pty.py", line 9, in <module> from select import select ImportError: dlopen(/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/select.so, 2): Symbol not found: __PyInt_AsInt Referenced from: /opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/select.so Expected in: flat namespace in /opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/select.so Press ENTER or type command to continue
then the command :ConqueGdb is recognized but nothing happens.