【发布时间】:2016-09-28 15:43:03
【问题描述】:
我在 Mac Yosemite 下以图形模式使用 emacs 24.5.1,我正在尝试让 gdb 7.11 正常工作。
在使用'gdb' 启动gdb 后,我使用'r' 运行一个迷你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.
有人见过吗?
【问题讨论】: