Mac OS X上的Emacs 24和GDB 6.3 [英] Emacs 24 and GDB 6.3 on Mac OS X

查看:129
本文介绍了Mac OS X上的Emacs 24和GDB 6.3的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在过去几天在OS X Lion上尝试过Emacs 24(pretest 24.0.95.1),但遇到了新的gdb / MI界面的问题。



使用GDB 6.3附带的Xcode,但gdb / MI接口似乎没有加载。它似乎尝试启动GDB GUD模式,但没有命令实际工作。



我也尝试通过Homebrew安装GDB-7.4。这让我有一部分。 gdb-many-windows界面出现,但是gdb提示符从未到达。 Emacs只是坐在那里吃了100%的CPU,但是不会变得没有反应。我仍然可以打开文件等。我只是不能做任何事情与GDB。



有其他人遇到类似的问题吗?您是否能够解决这些问题?如果是,如何解决?






编辑:2012-06-10:再次与新发布的Emacs 24.1。 GDB 6.3(通过Xcode)的行为保持不变。 GDB-7.4稍差一点,它启动GDB,而emacs使用了100%的CPU,但现在我不能做任何事情。 Emacs if frozen:/

解决方案

我试图使用来自

$ b的Keychain.app修改认证的方式
$ b

http://sourceware.org/gdb/wiki/BuildingOnDarwin



仍然抱怨认证..

  GNU gdb(GDB)7.4 
版权所有(C)2012自由软件基金会,
许可GPLv3 +:GNU GPL第3版或更高版本< http://gnu.org/licenses/gpl.html>
这是免费软件:您可以自由更改和重新分配。
在法律允许的范围内,没有任何保证。有关详细信息,请键入显示复制
和显示保修。
此GDB配置为x86_64-apple-darwin11.3.0。
有关错误报告说明,请参阅:
< http://www.gnu.org/software/gdb/bugs/> ...
从/ Users / hanfei读取符号/Documents/mis/mis...从/Users/hanfei/Documents/mis/mis.dSYM/Contents/Resources/DWARF/mis...done导入符号。
done。
(gdb)r
启动程序:/ Users / hanfei / Documents / mis / mis
无法找到进程标识的Mach任务端口52327:(os / kern) 。
(请检查gdb是否已签署 - 请参阅taskgated(8))

  $ sudo chgrp procmod / yourpath / gdb 
$ sudo chmod g + s / yourpath / gdb

I've been trying out Emacs 24 (pretest 24.0.95.1) on OS X Lion for the past few days but am running into some issues with the new gdb/MI interface.

With GDB 6.3 that comes with Xcode, but the gdb/MI interface doesn't seem to load at all. It appears to try to start the GDB GUD mode, but no commands actually work.

I also attempted installing GDB-7.4 via Homebrew. That gets me partly there. the gdb-many-windows interface shows up, but the gdb prompt never arrives. Emacs just sits there eating up 100% CPU, but yet doesn't become unresponsive. I can still open files, etc. I just can't do anything with GDB.

Has anyone else run into similar issues? Were you able to resolve them, and if so, how?


Edit: 2012-06-10: I just tried again with the newly released Emacs 24.1. The behavior with GDB 6.3 (via Xcode) remains the same. GDB-7.4 is slightly worse in that it starts up GDB, and emacs uses up 100% CPU but now I'm unable to do anything else. Emacs if frozen :/

解决方案

I tried to use the way of modify certification by Keychain.app from

http://sourceware.org/gdb/wiki/BuildingOnDarwin

It still complains about certification..

GNU gdb (GDB) 7.4
Copyright (C) 2012 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-apple-darwin11.3.0".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /Users/hanfei/Documents/mis/mis...Reading symbols from /Users/hanfei/Documents/mis/mis.dSYM/Contents/Resources/DWARF/mis...done.
done.
(gdb) r
Starting program: /Users/hanfei/Documents/mis/mis 
Unable to find Mach task port for process-id 52327: (os/kern) failure (0x5).
 (please check gdb is codesigned - see taskgated(8))

Then I tried:

$ sudo chgrp procmod /yourpath/gdb
$ sudo chmod g+s /yourpath/gdb

And it works for me now.

这篇关于Mac OS X上的Emacs 24和GDB 6.3的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆