<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>评论：vi/vim使用进阶: 在VIM中使用GDB调试 &#8211; 使用vimgdb</title>
	<atom:link href="http://easwy.com/blog/archives/advanced-vim-skills-vim-gdb-vimgdb/feed/" rel="self" type="application/rss+xml" />
	<link>http://easwy.com/blog/archives/advanced-vim-skills-vim-gdb-vimgdb/</link>
	<description>关注Linux, Scala, Java, 开源软件和嵌入式系统</description>
	<lastBuildDate>Thu, 09 Sep 2010 07:07:30 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>来自：Easwy</title>
		<link>http://easwy.com/blog/archives/advanced-vim-skills-vim-gdb-vimgdb/#comment-4035</link>
		<dc:creator>Easwy</dc:creator>
		<pubDate>Fri, 23 Jul 2010 04:21:58 +0000</pubDate>
		<guid isPermaLink="false">http://easwy.com/blog/?p=176#comment-4035</guid>
		<description>&lt;a href=&quot;#comment-4007&quot; rel=&quot;nofollow&quot;&gt;@jarrico &lt;/a&gt; 
你的gvim没编译出来，你可以参考一下这篇文章：

&lt;a href=&quot;http://easwy.com/blog/archives/advanced-vim-skills-solve-compile-problem/&quot; rel=&quot;nofollow&quot;&gt;vi/vim使用进阶: vim编译中遇到的问题及解决方法&lt;/a&gt;</description>
		<content:encoded><![CDATA[<p><a href="#comment-4007" rel="nofollow">@jarrico </a><br />
你的gvim没编译出来，你可以参考一下这篇文章：</p>
<p><a href="http://easwy.com/blog/archives/advanced-vim-skills-solve-compile-problem/" rel="nofollow">vi/vim使用进阶: vim编译中遇到的问题及解决方法</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>来自：jarrico</title>
		<link>http://easwy.com/blog/archives/advanced-vim-skills-vim-gdb-vimgdb/#comment-4007</link>
		<dc:creator>jarrico</dc:creator>
		<pubDate>Fri, 23 Jul 2010 00:04:14 +0000</pubDate>
		<guid isPermaLink="false">http://easwy.com/blog/?p=176#comment-4007</guid>
		<description>我有一个问题,config.log 提示有以下错误(config.log的片段), 编译出来后在console下vim只能用createvar的方法添加变量,用v然后 CTRL + P会提示&quot;Unable to create variable object&quot;, 

conftest.c:9:28: error: ac_nonexistent.h: No such file or directory
configure:3024: $? = 1
configure: failed program was:
&#124; /* confdefs.h.  */
&#124; #define PACKAGE_NAME &quot;&quot;
&#124; #define PACKAGE_TARNAME &quot;&quot;
&#124; #define PACKAGE_VERSION &quot;&quot;
&#124; #define PACKAGE_STRING &quot;&quot;
&#124; #define PACKAGE_BUGREPORT &quot;&quot;
&#124; #define UNIX 1
&#124; /* end confdefs.h.  */
&#124; #include 
configure:3057: result: gcc -E
configure:3086: gcc -E  conftest.c
configure:3093: $? = 0
configure:3124: gcc -E  conftest.c
conftest.c:9:28: error: ac_nonexistent.h: No such file or directory
configure:3131: $? = 1
configure: failed program was:
&#124; /* confdefs.h.  */
&#124; #define PACKAGE_NAME &quot;&quot;
&#124; #define PACKAGE_TARNAME &quot;&quot;
&#124; #define PACKAGE_VERSION &quot;&quot;
&#124; #define PACKAGE_STRING &quot;&quot;
&#124; #define PACKAGE_BUGREPORT &quot;&quot;
&#124; #define UNIX 1
&#124; /* end confdefs.h.  */
&#124; #include 
configure:3169: checking for grep that handles long lines and -e
configure:3229: result: /bin/grep
configure:3234: checking for egrep
configure:3298: result: /bin/grep -E
configure:3312: checking for library containing strerror
configure:3353: gcc -o conftest -g -O2   conftest.c  &gt;&amp;5
configure:3360: $? = 0
configure:3391: result: none required
configure:3402: checking for gawk
configure:3418: found /usr/bin/gawk
configure:3429: result: gawk
configure:3442: checking for strip
configure:3458: found /usr/bin/strip
configure:3470: result: strip
configure:3481: checking for ANSI C header files
configure:3511: gcc -c -g -O2  conftest.c &gt;&amp;5
configure:3518: $? = 0
configure:3617: gcc -o conftest -g -O2   conftest.c  &gt;&amp;5
configure:3621: $? = 0
configure:3627: ./conftest
configure:3631: $? = 0
configure:3649: result: yes
configure:3659: checking for sys/wait.h that is POSIX.1 compatible
configure:3695: gcc -c -g -O2  conftest.c &gt;&amp;5
configure:3702: $? = 0
configure:3717: result: yes
configure:3756: checking for buggy tools...
configure:3763: checking for BeOS
configure:3769: result: no
configure:3773: checking for QNX
configure:3780: result: no
configure:3784: checking for Darwin (Mac OS X)
configure:4178: result: no
configure:4186: checking --with-local-dir argument
configure:4212: result: Defaulting to /usr/local
configure:4237: checking --with-vim-name argument
configure:4245: result: Defaulting to vim
configure:4250: checking --with-ex-name argument
configure:4258: result: Defaulting to ex
configure:4263: checking --with-view-name argument
configure:4271: result: Defaulting to view
configure:4277: checking --with-global-runtime argument
configure:4288: result: no
configure:4293: checking --with-modified-by argument
configure:4304: result: no
configure:4309: checking if character set is EBCDIC
configure:4338: gcc -c -g -O2  conftest.c &gt;&amp;5
conftest.c: In function &#039;main&#039;:
conftest.c:20: error: &#039;make&#039; undeclared (first use in this function)
conftest.c:20: error: (Each undeclared identifier is reported only once
conftest.c:20: error: for each function it appears in.)
conftest.c:20: error: expected &#039;;&#039; before &#039;an&#039;
configure:4345: $? = 1
configure: failed program was:
&#124; /* confdefs.h.  */
&#124; #define PACKAGE_NAME &quot;&quot;
&#124; #define PACKAGE_TARNAME &quot;&quot;
&#124; #define PACKAGE_VERSION &quot;&quot;
&#124; #define PACKAGE_STRING &quot;&quot;
&#124; #define PACKAGE_BUGREPORT &quot;&quot;
&#124; #define UNIX 1
&#124; #define STDC_HEADERS 1
&#124; #define HAVE_SYS_WAIT_H 1
&#124; /* end confdefs.h.  */
&#124; 
&#124; int
&#124; main ()
&#124; {
&#124;  /* TryCompile function for CharSet.
&#124;    Treat any failure as ASCII for compatibility with existing art.
&#124;    Use compile-time rather than run-time tests for cross-compiler
&#124;    tolerance.  */
&#124; #if &#039;0&#039;!=240
&#124; make an error &quot;Character set is not EBCDIC&quot;
&#124; #endif
&#124;   ;
&#124;   return 0;
&#124; }

用到confdefs.h的地方都提示错误,望赐教！

而且在gvim根本没法加载macros/gdb_mappings.vim(没有任何提示),查看gvim后发现gvim没有被编译出来,是原来的gvim.

我编译选项我uncomment了－enable-perlinterp, －enable-pythoninterp
–enable-cscope, –enable-multibyte和–enable-xim选项

系统
Ubuntu 9.04
GNU gdb 6.8
vim 7.2
vimgdb7.2
GNOME</description>
		<content:encoded><![CDATA[<p>我有一个问题,config.log 提示有以下错误(config.log的片段), 编译出来后在console下vim只能用createvar的方法添加变量,用v然后 CTRL + P会提示&#8221;Unable to create variable object&#8221;, </p>
<p>conftest.c:9:28: error: ac_nonexistent.h: No such file or directory<br />
configure:3024: $? = 1<br />
configure: failed program was:<br />
| /* confdefs.h.  */<br />
| #define PACKAGE_NAME &#8220;&#8221;<br />
| #define PACKAGE_TARNAME &#8220;&#8221;<br />
| #define PACKAGE_VERSION &#8220;&#8221;<br />
| #define PACKAGE_STRING &#8220;&#8221;<br />
| #define PACKAGE_BUGREPORT &#8220;&#8221;<br />
| #define UNIX 1<br />
| /* end confdefs.h.  */<br />
| #include<br />
configure:3057: result: gcc -E<br />
configure:3086: gcc -E  conftest.c<br />
configure:3093: $? = 0<br />
configure:3124: gcc -E  conftest.c<br />
conftest.c:9:28: error: ac_nonexistent.h: No such file or directory<br />
configure:3131: $? = 1<br />
configure: failed program was:<br />
| /* confdefs.h.  */<br />
| #define PACKAGE_NAME &#8220;&#8221;<br />
| #define PACKAGE_TARNAME &#8220;&#8221;<br />
| #define PACKAGE_VERSION &#8220;&#8221;<br />
| #define PACKAGE_STRING &#8220;&#8221;<br />
| #define PACKAGE_BUGREPORT &#8220;&#8221;<br />
| #define UNIX 1<br />
| /* end confdefs.h.  */<br />
| #include<br />
configure:3169: checking for grep that handles long lines and -e<br />
configure:3229: result: /bin/grep<br />
configure:3234: checking for egrep<br />
configure:3298: result: /bin/grep -E<br />
configure:3312: checking for library containing strerror<br />
configure:3353: gcc -o conftest -g -O2   conftest.c  &gt;&amp;5<br />
configure:3360: $? = 0<br />
configure:3391: result: none required<br />
configure:3402: checking for gawk<br />
configure:3418: found /usr/bin/gawk<br />
configure:3429: result: gawk<br />
configure:3442: checking for strip<br />
configure:3458: found /usr/bin/strip<br />
configure:3470: result: strip<br />
configure:3481: checking for ANSI C header files<br />
configure:3511: gcc -c -g -O2  conftest.c &gt;&amp;5<br />
configure:3518: $? = 0<br />
configure:3617: gcc -o conftest -g -O2   conftest.c  &gt;&amp;5<br />
configure:3621: $? = 0<br />
configure:3627: ./conftest<br />
configure:3631: $? = 0<br />
configure:3649: result: yes<br />
configure:3659: checking for sys/wait.h that is POSIX.1 compatible<br />
configure:3695: gcc -c -g -O2  conftest.c &gt;&amp;5<br />
configure:3702: $? = 0<br />
configure:3717: result: yes<br />
configure:3756: checking for buggy tools&#8230;<br />
configure:3763: checking for BeOS<br />
configure:3769: result: no<br />
configure:3773: checking for QNX<br />
configure:3780: result: no<br />
configure:3784: checking for Darwin (Mac OS X)<br />
configure:4178: result: no<br />
configure:4186: checking &#8211;with-local-dir argument<br />
configure:4212: result: Defaulting to /usr/local<br />
configure:4237: checking &#8211;with-vim-name argument<br />
configure:4245: result: Defaulting to vim<br />
configure:4250: checking &#8211;with-ex-name argument<br />
configure:4258: result: Defaulting to ex<br />
configure:4263: checking &#8211;with-view-name argument<br />
configure:4271: result: Defaulting to view<br />
configure:4277: checking &#8211;with-global-runtime argument<br />
configure:4288: result: no<br />
configure:4293: checking &#8211;with-modified-by argument<br />
configure:4304: result: no<br />
configure:4309: checking if character set is EBCDIC<br />
configure:4338: gcc -c -g -O2  conftest.c &gt;&amp;5<br />
conftest.c: In function &#8216;main&#8217;:<br />
conftest.c:20: error: &#8216;make&#8217; undeclared (first use in this function)<br />
conftest.c:20: error: (Each undeclared identifier is reported only once<br />
conftest.c:20: error: for each function it appears in.)<br />
conftest.c:20: error: expected &#8216;;&#8217; before &#8216;an&#8217;<br />
configure:4345: $? = 1<br />
configure: failed program was:<br />
| /* confdefs.h.  */<br />
| #define PACKAGE_NAME &#8220;&#8221;<br />
| #define PACKAGE_TARNAME &#8220;&#8221;<br />
| #define PACKAGE_VERSION &#8220;&#8221;<br />
| #define PACKAGE_STRING &#8220;&#8221;<br />
| #define PACKAGE_BUGREPORT &#8220;&#8221;<br />
| #define UNIX 1<br />
| #define STDC_HEADERS 1<br />
| #define HAVE_SYS_WAIT_H 1<br />
| /* end confdefs.h.  */<br />
|<br />
| int<br />
| main ()<br />
| {<br />
|  /* TryCompile function for CharSet.<br />
|    Treat any failure as ASCII for compatibility with existing art.<br />
|    Use compile-time rather than run-time tests for cross-compiler<br />
|    tolerance.  */<br />
| #if &#8217;0&#8242;!=240<br />
| make an error &#8220;Character set is not EBCDIC&#8221;<br />
| #endif<br />
|   ;<br />
|   return 0;<br />
| }</p>
<p>用到confdefs.h的地方都提示错误,望赐教！</p>
<p>而且在gvim根本没法加载macros/gdb_mappings.vim(没有任何提示),查看gvim后发现gvim没有被编译出来,是原来的gvim.</p>
<p>我编译选项我uncomment了－enable-perlinterp, －enable-pythoninterp<br />
–enable-cscope, –enable-multibyte和–enable-xim选项</p>
<p>系统<br />
Ubuntu 9.04<br />
GNU gdb 6.8<br />
vim 7.2<br />
vimgdb7.2<br />
GNOME</p>
]]></content:encoded>
	</item>
	<item>
		<title>来自：騎士Yu</title>
		<link>http://easwy.com/blog/archives/advanced-vim-skills-vim-gdb-vimgdb/#comment-2851</link>
		<dc:creator>騎士Yu</dc:creator>
		<pubDate>Fri, 21 May 2010 02:02:56 +0000</pubDate>
		<guid isPermaLink="false">http://easwy.com/blog/?p=176#comment-2851</guid>
		<description>編譯完畢，執行./vim，確認是否可執行
有些版本的GCC編譯後會不能執行
若不能執行就需要以make CFLAGS=&quot;-O3 -D_FORTIFY_SOURCE=1&quot;編譯
然後再安裝</description>
		<content:encoded><![CDATA[<p>編譯完畢，執行./vim，確認是否可執行<br />
有些版本的GCC編譯後會不能執行<br />
若不能執行就需要以make CFLAGS=&#8221;-O3 -D_FORTIFY_SOURCE=1&#8243;編譯<br />
然後再安裝</p>
]]></content:encoded>
	</item>
	<item>
		<title>来自：Easwy</title>
		<link>http://easwy.com/blog/archives/advanced-vim-skills-vim-gdb-vimgdb/#comment-2391</link>
		<dc:creator>Easwy</dc:creator>
		<pubDate>Tue, 30 Mar 2010 01:36:15 +0000</pubDate>
		<guid isPermaLink="false">http://easwy.com/blog/?p=176#comment-2391</guid>
		<description>&lt;a href=&quot;#comment-2362&quot; rel=&quot;nofollow&quot;&gt;@btzhu &lt;/a&gt; 
你改一下gdb_mappings.vim这个脚本就可以了，把这一句注释掉：

echo &quot;gdb keys mapped&quot;</description>
		<content:encoded><![CDATA[<p><a href="#comment-2362" rel="nofollow">@btzhu </a><br />
你改一下gdb_mappings.vim这个脚本就可以了，把这一句注释掉：</p>
<p>echo &#8220;gdb keys mapped&#8221;</p>
]]></content:encoded>
	</item>
	<item>
		<title>来自：btzhu</title>
		<link>http://easwy.com/blog/archives/advanced-vim-skills-vim-gdb-vimgdb/#comment-2362</link>
		<dc:creator>btzhu</dc:creator>
		<pubDate>Thu, 25 Mar 2010 04:36:20 +0000</pubDate>
		<guid isPermaLink="false">http://easwy.com/blog/?p=176#comment-2362</guid>
		<description>:run macros/gdb_mappings.vim
把这个加到.vimrc后，每次启动都会显示gdb映射成功的字样，感觉很烦，怎样去掉？？之前好像搜到有人解决了，但没记下来</description>
		<content:encoded><![CDATA[<p>:run macros/gdb_mappings.vim<br />
把这个加到.vimrc后，每次启动都会显示gdb映射成功的字样，感觉很烦，怎样去掉？？之前好像搜到有人解决了，但没记下来</p>
]]></content:encoded>
	</item>
	<item>
		<title>来自：Easwy</title>
		<link>http://easwy.com/blog/archives/advanced-vim-skills-vim-gdb-vimgdb/#comment-2350</link>
		<dc:creator>Easwy</dc:creator>
		<pubDate>Tue, 23 Mar 2010 01:22:42 +0000</pubDate>
		<guid isPermaLink="false">http://easwy.com/blog/?p=176#comment-2350</guid>
		<description>&lt;a href=&quot;#comment-2348&quot; rel=&quot;nofollow&quot;&gt;@zhongfeng &lt;/a&gt; 
看来你对linux很不熟悉，请设置一下PATH环境变量，使/usr/local/bin/vim最先被使用。
或者直接用命令&quot;/usr/local/bin/vim&quot;来启动vim，启动后执行&quot;:version&quot;命令，看看是不是你自己编译的vim。</description>
		<content:encoded><![CDATA[<p><a href="#comment-2348" rel="nofollow">@zhongfeng </a><br />
看来你对linux很不熟悉，请设置一下PATH环境变量，使/usr/local/bin/vim最先被使用。<br />
或者直接用命令&#8221;/usr/local/bin/vim&#8221;来启动vim，启动后执行&#8221;:version&#8221;命令，看看是不是你自己编译的vim。</p>
]]></content:encoded>
	</item>
	<item>
		<title>来自：zhongfeng</title>
		<link>http://easwy.com/blog/archives/advanced-vim-skills-vim-gdb-vimgdb/#comment-2348</link>
		<dc:creator>zhongfeng</dc:creator>
		<pubDate>Mon, 22 Mar 2010 17:42:38 +0000</pubDate>
		<guid isPermaLink="false">http://easwy.com/blog/?p=176#comment-2348</guid>
		<description>我把prefix =usr/share/vim/了
用vi -v 时候出现的是中文介绍
还有
gdbprg=gdb_invocation
设置这个时候说是未知选项？</description>
		<content:encoded><![CDATA[<p>我把prefix =usr/share/vim/了<br />
用vi -v 时候出现的是中文介绍<br />
还有<br />
gdbprg=gdb_invocation<br />
设置这个时候说是未知选项？</p>
]]></content:encoded>
	</item>
	<item>
		<title>来自：zhongfeng</title>
		<link>http://easwy.com/blog/archives/advanced-vim-skills-vim-gdb-vimgdb/#comment-2347</link>
		<dc:creator>zhongfeng</dc:creator>
		<pubDate>Mon, 22 Mar 2010 17:30:41 +0000</pubDate>
		<guid isPermaLink="false">http://easwy.com/blog/?p=176#comment-2347</guid>
		<description>/usr/local/bin/vim   etc/vim    /usr/share/vim 都有阿
我是用ubuntu9.10,     vim 7.2   gdbvim7.2
始终还是挑不出gdbvim来。弄了好几天了</description>
		<content:encoded><![CDATA[<p>/usr/local/bin/vim   etc/vim    /usr/share/vim 都有阿<br />
我是用ubuntu9.10,     vim 7.2   gdbvim7.2<br />
始终还是挑不出gdbvim来。弄了好几天了</p>
]]></content:encoded>
	</item>
	<item>
		<title>来自：Easwy</title>
		<link>http://easwy.com/blog/archives/advanced-vim-skills-vim-gdb-vimgdb/#comment-2339</link>
		<dc:creator>Easwy</dc:creator>
		<pubDate>Mon, 22 Mar 2010 01:47:20 +0000</pubDate>
		<guid isPermaLink="false">http://easwy.com/blog/?p=176#comment-2339</guid>
		<description>&lt;a href=&quot;#comment-2336&quot; rel=&quot;nofollow&quot;&gt;@zhongfeng &lt;/a&gt; 
你查看一下有没有/usr/local/bin/vim？

或者你可以用命令whereis看一下你的路径中有几个vim
whereis vim</description>
		<content:encoded><![CDATA[<p><a href="#comment-2336" rel="nofollow">@zhongfeng </a><br />
你查看一下有没有/usr/local/bin/vim？</p>
<p>或者你可以用命令whereis看一下你的路径中有几个vim<br />
whereis vim</p>
]]></content:encoded>
	</item>
	<item>
		<title>来自：zhongfeng</title>
		<link>http://easwy.com/blog/archives/advanced-vim-skills-vim-gdb-vimgdb/#comment-2336</link>
		<dc:creator>zhongfeng</dc:creator>
		<pubDate>Sat, 20 Mar 2010 14:07:26 +0000</pubDate>
		<guid isPermaLink="false">http://easwy.com/blog/?p=176#comment-2336</guid>
		<description>因为想用gdbvim所以需要手动编译。
sudo make install 后没有出错，感觉是成功了。
但是始终在vim下，跳不出gdb来。
感觉是没安装到，于是把usr/share/vim 文件删除了。
但终端还能用vim。
然后再make install后发现没有生成usr/share/vim文件夹。
那是不是没有安装成功？？？！</description>
		<content:encoded><![CDATA[<p>因为想用gdbvim所以需要手动编译。<br />
sudo make install 后没有出错，感觉是成功了。<br />
但是始终在vim下，跳不出gdb来。<br />
感觉是没安装到，于是把usr/share/vim 文件删除了。<br />
但终端还能用vim。<br />
然后再make install后发现没有生成usr/share/vim文件夹。<br />
那是不是没有安装成功？？？！</p>
]]></content:encoded>
	</item>
</channel>
</rss>
