我们有一个运行linux的嵌入式设备。我输入的内容可以立即在shell中回显,但是当我启动gdb时,在按下Enter键之前我看不到任何用户输入。这是一个例子:
sh-4.3# ls
/tmp
sh-4.3# gdb
GNU gdb (Debian 7.7.1+dfsg-5) 7.7.1
Copyright (C) 2014 Free Software Foundation, Inc
This is free software: you are free to change and redistribute it.
<------(I already type "shell ls", but nothing echoed in the screen)
(gdb)shell ls <------(then I press Enter key, and things come out)
/tmp
这两种情况有什么不同?