I checked out the gdb source and compiled successfully with MinGW
. When I run the output file gdb.exe
, I cannot input anything, any key press would cause it quit:
aj@TERRAN 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
aj@TERRAN E:\
$
I didn't input the last quit
, I just hit the space
and it quits.
I downloaded another prebuilt gdb which works fine, but it doesn't support python, so I need to build it myself.
But I tried the tui mode with gdb -tui
, it works fine, I can type commands.
Why does non-tui-mode quit?
This is a bug of gdb 7.12, 7.11.1 works just fine.