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

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

问题描述

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

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.

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

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.

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

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?

编辑:2012-06-10:我刚刚尝试再次与新发布的Emacs 24.1。 GDB 6.3(通过Xcode)的行为保持不变。 GDB-7.4稍微差一些,因为它启动了GDB,而emacs使用了100%的CPU,但现在我无法做任何事情。 Emacs如果冻结:/

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 :/

推荐答案

我尝试使用从

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

它仍然抱怨认证..

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))

然后我尝试:

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

现在,适用于

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

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