Domanda

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

È stato utile?

Soluzione

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
Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top