作者:卢太爽 | 来源:互联网 | 2023-06-26 15:32
Help,howdoifixthis?Iamunabletoredirectcommandfromstdintogdb.帮助,我怎么解决这个问题?我无法将命令从stdi
Help, how do i fix this? I am unable to redirect command from stdin to gdb.
帮助,我怎么解决这个问题?我无法将命令从stdin重定向到gdb。
I get this error:
我得到这个错误:
charmae@charmae-pc:~/workspace/AVT$ echo "list" | gdb a.out
GNU gdb (Ubuntu/Linaro 7.3-0ubuntu2) 7.3-2011.08
Copyright (C) 2011 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later
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 "i686-linux-gnu".
For bug reporting instructions, please see:
...
Reading symbols from /home/charmae/workspace/AVT/a.out...done.
(gdb) Hangup detected on fd 0
error detected on stdin
2 个解决方案