2016-12-16 94 views
0

我簽出了gdb源碼併成功編譯成MinGW。當我運行的輸出文件gdb.exe,我不能輸入任何東西,任何按鍵會導致它退出:按任意鍵後gdb總是退出

[email protected] E:\ 
$ gdb --data-directory=E:\gdb_build\gdb\gdb-7.11\gdb\data-directory 
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 "--host=i686-pc-mingw32 --target=arm-linux-androideabi". 
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". 
(gdb) quit 

[email protected] E:\ 
$ 

我沒有輸入最後quit,我剛打了space和它退出。 我下載了另一個預編譯的gdb,它工作正常,但它不支持python,所以我需要自己構建它。

但我嘗試了tui模式gdb -tui,它工作正常,我可以鍵入命令。 爲什麼non-tui模式退出?

回答

0

這是gdb 7.12,7.11.1的缺陷。