簡體   English   中英

在emacs下調試問題

[英]problems in debugging under emacs

我在emacs下調試c ++時遇到問題。 當我啟動調試命令時:

MX gdb --annotate=3 myprogram

gdb shell不提示。 相反,它顯示(gdb) Current directory is ~/programs/small/后卡住了。 (gdb) Current directory is ~/programs/small/ ,如下所示。 我不能輸入任何調試命令...但是狀態欄沒有顯示錯誤消息。 有誰知道如何解決它? 謝謝!

GNU gdb (Ubuntu/Linaro 7.2-1ubuntu11) 7.2
Copyright (C) 2010 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it. 
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /home/chzhang/programs/small/loop...done.
(gdb) Current directory is ~/programs/small/

我曾經因為綁定.inputrc某些鍵而遇到這樣的問題。 如果不確定是否以這種方式綁定了鍵,但是要進行測試,可以運行emacs作為

INPUTRC= emacs &

看看是否能解決問題。

也許更可能是您正在使用Emacs的新mi接口。 在Emacs 24(尚未發布,但可以在快照中使用)中,這是默認設置,而gdb --annotate=3不再是“ 正確的選擇” 對於新接口,您需要gdb -i mi

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM