Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/vim/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Python Fedora 19 Pyclewn找不到GDB版本_Python_Vim_Gdb_Fedora - Fatal编程技术网

Python Fedora 19 Pyclewn找不到GDB版本

Python Fedora 19 Pyclewn找不到GDB版本,python,vim,gdb,fedora,Python,Vim,Gdb,Fedora,如何让pyclewn获得我的gdb版本 [mehoggan@localhost emulator]$ pyclewn gdb CRITICAL response to "show version": ***START*** =thread-group-added,id="i1" ~"GNU gdb (GDB) Fedora (7.6-32.fc19)\n" ~"Copyright (C) 2013 Free Software Foundation, Inc.\n" ~"License GPLv

如何让pyclewn获得我的gdb版本

[mehoggan@localhost emulator]$ pyclewn
gdb  CRITICAL response to "show version":
***START***
=thread-group-added,id="i1"
~"GNU gdb (GDB) Fedora (7.6-32.fc19)\n"
~"Copyright (C) 2013 Free Software Foundation, Inc.\n"
~"License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>\nThis is free software: you are free to change and redistribute it.\nThere is NO WARRANTY, to the extent permitted by law.  Type \"show copying\"\nand \"show warranty\" for details.\n"
~"This GDB was configured as \"x86_64-redhat-linux-gnu\".\nFor bug reporting instructions, please see:\n"
~"<http://www.gnu.org/software/gdb/bugs/>.\n"
***END***


vim  CRITICAL 
Exception in pyclewn:

<class 'clewn.ClewnError'>
"cannot find the gdb version"
source line: "raise ClewnError('cannot find the gdb version')"
at /usr/lib64/python2.7/site-packages/clewn/gdb.py:340

pyclewn aborting...


[mehoggan@localhost emulator]$ gdb --version
GNU gdb (GDB) Fedora (7.6-32.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/>.
[mehoggan@localhost模拟器]$pyclewn
gdb对“显示版本”的关键响应:
***开始***
=已添加线程组,id=“i1”
~“GNU gdb(gdb)软呢帽(7.6-32.fc19)\n”
“版权(C)2013免费软件基金会,公司”
~“许可证GPLv3+:GNU GPL版本3或更高版本\n这是免费软件:您可以自由更改和重新发布。\n在法律允许的范围内,不提供任何保修。有关详细信息,请键入\“显示复制\ \和\“显示保修\”。\n”
~“此GDB已配置为\“x86_64-redhat-linux-gnu\”\n有关错误报告说明,请参阅:\n”
~“\n”
***结束***
维姆临界
pyclewn中的异常:
“找不到gdb版本”
源代码行:“raise ClewnError('找不到gdb版本')”
at/usr/lib64/python2.7/site-packages/clewn/gdb.py:340
pyclewn正在中止。。。
[mehoggan@localhost仿真器]$gdb--版本
GNU gdb(gdb)软呢帽(7.6-32.fc19)
版权所有(C)2013免费软件基金会。
许可证GPLv3+:GNU GPL版本3或更高版本
这是自由软件:您可以自由更改和重新发布它。
在法律允许的范围内,不存在任何担保。键入“显示复制”
和“显示保修”了解详细信息。
此GDB配置为“x86_64-redhat-linux-gnu”。
有关错误报告说明,请参阅:
.

我的红帽盒也遇到了同样的问题。我通过转到引用的文件和行号来修复它:
/usr/lib64/python2.7/site packages/clew/gdb.py:340
,并进行以下修复:

从第328行开始:

            version = ''.join(takewhile(lambda x: x.isdigit() or x == '.',
            version[1]))
并将其更改为:

            version = ''.join(takewhile(lambda x: x.isdigit() or x == '.',
            version[1][1:]))
问题是它如何处理版本字符串中的第一个“
”(
)字符:

[root@localhost ~ 03:52 PM] $ gdb -v

GNU gdb (GDB) Red Hat Enterprise Linux (7.0.1-42.el5)
Copyright (C) 2009 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/>.

通过在
版本[1]
之后添加
[1://code>,我告诉脚本无条件跳过第一个字符,这在我的机器上是必须的。这可能不是一个长期的修复方法,但它让我的pyclewn工作=)

我在我的红帽盒上遇到了同样的问题。我通过转到引用的文件和行号来修复它:
/usr/lib64/python2.7/site packages/clew/gdb.py:340
,并进行以下修复:

从第328行开始:

            version = ''.join(takewhile(lambda x: x.isdigit() or x == '.',
            version[1]))
并将其更改为:

            version = ''.join(takewhile(lambda x: x.isdigit() or x == '.',
            version[1][1:]))
问题是它如何处理版本字符串中的第一个“
”(
)字符:

[root@localhost ~ 03:52 PM] $ gdb -v

GNU gdb (GDB) Red Hat Enterprise Linux (7.0.1-42.el5)
Copyright (C) 2009 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/>.

通过在
版本[1]
之后添加
[1://code>,我告诉脚本无条件跳过第一个字符,这在我的机器上是必须的。这可能不是一个长期的修复方法,但它让我的pyclewn工作=)

上报告了Suse的类似问题

这个问题现在在pyclewn开发分支中得到了解决 还修复了Fedora(7.6-32.fc19)的问题。所以这两个问题 将在下一个pyclewn版本1.11中修复

Fedora和Suse gdb发行版都有一个 不符合GNU编码标准。请参阅已删除的错误 发送给Fedora bug tracker,地址:


据报道,Suse在

这个问题现在在pyclewn开发分支中得到了解决 还修复了Fedora(7.6-32.fc19)的问题。所以这两个问题 将在下一个pyclewn版本1.11中修复

Fedora和Suse gdb发行版都有一个 不符合GNU编码标准。请参阅已删除的错误 发送给Fedora bug tracker,地址: