【部分解决】emacs下gdb调试时scanf无返回的问题
发表于 : 2010-04-14 21:36
问题如题,在shell下直接运行或gdb均没有问题,eshell下gdb也没有问题,但emacs下运行gdb,r之后就会停留在scanf语句处等待输入,不管输入多少次回车都没有反应。比较奇怪的是,9.04下没有这个问题,到9.10后突然出现的。
此外,M-x gdb RET后输入gdb,出现如下错误:
此外,M-x gdb RET后输入gdb,出现如下错误:
敬请高人指教!This GDB was configured as "i486-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
(gdb) Undefined command: "1-inferior-tty-set". Try "help".
(gdb) Undefined command: "2-gdb-set". Try "help".
(gdb) Undefined command: "3-gdb-set". Try "help".
(gdb) Undefined command: "4-file-list-exec-source-files". Try "help".
(gdb) Undefined command: "5-file-list-exec-source-file". Try "help".
(gdb) Undefined command: "6-gdb-show". Try "help".
(gdb) Undefined command: "7-stack-info-frame". Try "help".
(gdb) Undefined command: "8-thread-info". Try "help".
(gdb) Undefined command: "9-break-list". Try "help".