我在Mac Yosemite下使用emacs 24.5.1,在图形模式下,我正在尝试让gdb 7.11正常工作。
使用'gdb'启动gdb后,我使用'r'运行一个mini C ++代码,只包含一个空的main(),它正常退出。退出后我可以再次键入'r',程序将运行并再次退出。但是,当我输入'q'来退出gdb时,我得到一个没有(gdb)提示符的换行符,但是gdb似乎没有退出;它不再响应输入,但是当我再次尝试调用gdb时,emacs告诉我“这个程序已经被调试了”。
Current directory is ~/cpp/ppcpp/
GNU gdb (GDB) 7.11
Copyright (C) 2016 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-apple-darwin15.4.0".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from a.out...Reading symbols from /Users/mwisse/cpp/ppcpp/a.out.dSYM/Contents/Resources/DWARF/a.out...done.
done.
(gdb) r
Starting program: /Users/mwisse/cpp/ppcpp/a.out
[Inferior 1 (process 98675) exited normally]
(gdb) r
Starting program: /Users/mwisse/cpp/ppcpp/a.out
[Inferior 1 (process 98677) exited normally]
(gdb) q
...This is me typing something to show I can type anything here...
but no response.
有没有人见过这个?
答案 0 :(得分:0)
我没有找到导致问题的原因,但是在将.emacs.d目录替换为此处提到的目录后,它就消失了:http://tuhdo.github.io/emacs-for-proglang.html。