문제

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

도움이 되었습니까?

해결책

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
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top