gud-gdb emacs 24不工作 [英] gud-gdb emacs 24 not working
问题描述
我在emacs 24下遇到gdb的困难。
我用-g开关编译了我的c代码,并在gdb中加载了符号表。
我遇到的问题是当我加载我的应用程序时没有显示源代码,没有断点是可见的。我猜,源代码缓冲区和gdb缓冲区之间似乎没有连接。
I'm having difficulties with gdb under emacs 24. I compiled my c code with the -g switch, and the symbol table loads in gdb. The problem I'm having is that no source code is shown when I load my application, no breakpoints are visible. I guess there appears to be no connection between the source code buffer and gdb buffer.
我已经在emacs之前使用过gdb(emacs 22和23),并且运行良好现在没有。
我也在 emacs -q
下尝试过,所以没有插件加载,以防我的.emacs出错,没有喜悦。
I have used gdb under emacs before (emacs 22, and 23) and it worked well and now it doesn't.
I also tried it under emacs -q
so no plugins are loaded in case my .emacs was at fault, no joy.
只是为了回顾(所以我没有得到编译与-g答案):
Just to recap (so I don't get "compile with -g" answers):
- 我编译用-g我加载没有插件的emacs
- 我用gud-gdb
- 我甚至尝试过gdb-mi(根本不工作,没有追求
这条路)
使用了
annotate = 3
- I compiled with -g I loaded emacs with no plugins
- I used
annotate=3
with gud-gdb - I even tried gdb-mi (doesn't work at all, didn't pursue this road any further)
Gdb不使用显示(带断点)的源代码。
我可以做些什么来修复它,或者至少如何找出有什么问题?
Gdb ain't working with source code showing (with breakpoints). What can I do to fix it, or at least how can I find out what's wrong?
推荐答案
Mx gud-gdb
不适用于annotate = 3,但使用--fullname(aka --annotate = 1,IIRC)。
M-x gud-gdb
is not for use with annotate=3 but with --fullname (aka --annotate=1, IIRC).
这篇关于gud-gdb emacs 24不工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!