简体   繁体   English

让gdb与emacs一起使用24

[英]Getting gdb to work with emacs 24

Realised after much head-scratching in relation to this question that gdb seems to be broken in emacs 24 经历了与此问题相关的令人 gdb 问题gdb似乎在emacs 24被打破了

So I have switched to gud-gdb 所以我已切换到gud-gdb

But I now notice that the very handy red dots on break points don't seem to work in gud-gdb 但我现在注意到断点上非常方便的红点似乎不适用于gud-gdb

Does anyone have a definitive answer on how to be able to sensibly debug C code using emacs 24 ? 有没有人对如何使用emacs 24明智地调试C代码有明确的答案?

I never had any problems in emacs 23 but 24 has caused me all sorts of bother.. 我在emacs 23从来没有遇到任何问题,但是24引起了各种各样的麻烦..

Maybe I should switch back to emacs 23 but this seems a little regressive? 也许我应该切换回emacs 23但这似乎有点退步?

Is the new method to use gdb-mi in some way? 新方法是否以某种方式使用gdb-mi

Would be very interested to learn what best-practice is with respect to emacs 24 - haven't been able to find any relevant ( emacs 24 specific) tutorials on the interwebs 非常有兴趣了解emacs 24最佳实践 - 未能在互联网上找到任何相关的( emacs 24特定的)教程

gdb is working for me out of box on GNU Emacs 24.3.1. gdb在GNU Emacs 24.3.1上为我开箱即用。

If it still doesn't work for you, please try to use command: 如果它仍然不适合您,请尝试使用命令:

gdb --fullname binary_name

insead of default 默认的

gdb -i=mi binary_name

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM