Getting gdb to work with emacs 24

白昼怎懂夜的黑 提交于 2019-12-19 08:55:13

问题


Realised after much head-scratching in relation to this question that gdb seems to be broken in emacs 24

So I have switched to gud-gdb

But I now notice that the very handy red dots on break points don't seem to work in gud-gdb

Does anyone have a definitive answer on how to be able to sensibly debug C code using emacs 24?

I never had any problems in emacs 23 but 24 has caused me all sorts of bother..

Maybe I should switch back to emacs 23 but this seems a little regressive?

Is the new method to use gdb-mi in some way?

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


回答1:


gdb is working for me out of box on 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


来源:https://stackoverflow.com/questions/20662444/getting-gdb-to-work-with-emacs-24

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!