gud-gdb emacs 24 不工作 [英] gud-gdb emacs 24 not working

查看:30
本文介绍了gud-gdb emacs 24 不工作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在 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 中使用了 annotate=3
  • 我什至尝试过 gdb-mi(根本不起作用,没有追求这条路更远)

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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆